Category: 2D Game Physics (Pro)
CreatePhysicsWorld(gravityX As Double, gravityY As Double)
Integer
Creates an independent native 2D physics world and returns its handle.
The world uses a fixed 120 Hz simulation step internally. Positive Y gravity points down in screen coordinates. Up to 16 worlds may exist at once.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
world = CreatePhysicsWorld(0, 980)