Physics3DJointEnabled

Family: 3DPhysics · One form

What it does

Physics3DJointEnabled takes jointID (an integer), and answers an integer. jointID is the id of a Joint object, obtained elsewhere in the 3DPhysics family.

Syntax

Physics3DJointEnabled(jointID integer) → integer

Parameters

NameType
jointIDinteger

Every form returns

integer

Example · generated

joint = CreateWeldJoint(1, 1, 100.0, 120.0, 1)DO  Print(Physics3DJointEnabled(joint))  Sync()LOOP

CreateWeldJoint is there to give the call something to act on; Physics3DJointEnabled is the line that matters. 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