Set3DPhysicsGravity

Family: 3DPhysics · 2 forms

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

NameTypeIn forms
xfloat1
yfloat1
zfloat1
vectorIDinteger2

Every form returns

nothing

Example · generated

Form 1, with every argument

Set3DPhysicsGravity(100.0, 120.0, 100.0)DO  Sync()LOOP

Form 2, the short one

Set3DPhysicsGravity(1)DO  Sync()LOOP

Set3DPhysicsGravity 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.

144 commands in 3DPhysics