What it does
PhysicsGravity writes to a 2DPhysics object: it sets rather than reads. It takes x (a float) and y (a float), and returns nothing.
Syntax
PhysicsGravity(x float, y float)Parameters
| Name | Type |
|---|---|
| x | float |
| y | float |
Every form returns
nothing
Example · generated
PhysicsGravity(100.0, 120.0)DO Sync()LOOPPhysicsGravity is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.