sm.physics.getGravity

Returns the gravitational acceleration affecting shapes and bodies.

Kind: Function

Environments: Game

Game

sm.physics.getGravity(  )

Open the full Game reference

Availability: Server only

Returns:

Type Description
number The gravitational value.