What it does
Set3DPhysicsGravity sets Gravity on a 3DPhysics object. It takes x (a float), y (a float) and z (a float), and returns nothing. That is the first of 2 forms.
Syntax
1
Set3DPhysicsGravity(x float, y float, z float)2
Set3DPhysicsGravity(vectorID integer)Parameters
| Name | Type | In forms |
|---|---|---|
| x | float | 1 |
| y | float | 1 |
| z | float | 1 |
| vectorID | integer | 2 |
Every form returns
nothing
Example · generated
Form 1, with every argument
Set3DPhysicsGravity(100.0, 120.0, 100.0)DO Sync()LOOPForm 2, the short one
Set3DPhysicsGravity(1)DO Sync()LOOPSet3DPhysicsGravity 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.