Set3DPhysicsJointEnabled

Family: 3DPhysics · One form

What it does

Set3DPhysicsJointEnabled sets JointEnabled on a 3DPhysics object. It takes jointID (an integer) and isEnabled (an integer), and returns nothing. jointID is the id of a Joint object, obtained elsewhere in the 3DPhysics family.

Syntax

Set3DPhysicsJointEnabled(jointID integer, isEnabled integer)

Parameters

NameType
jointIDinteger
isEnabledinteger

Every form returns

nothing

Example · generated

object = LoadObject("assets/media.obj")joint = Create3DPhysicsPickJoint(object, 1)Set3DPhysicsJointEnabled(joint, 1)DO  Sync()LOOP

LoadObject and Create3DPhysicsPickJoint are there to give the call something to act on; Set3DPhysicsJointEnabled 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