sm.physics.setGravity

Sets the gravitational acceleration affecting shapes and bodies.

Kind: Function

Environments: Game

Game

sm.physics.setGravity( gravity )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
gravity number The gravitational value.