sm.physics.setGravity
Sets the gravitational acceleration affecting shapes and bodies.
Kind: Function
Environments: Game
Game
sm.physics.setGravity( gravity )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
gravity |
number | The gravitational value. |