Physics3DJointConeTwistLimits

Family: 3DPhysics · One form

What it does

Physics3DJointConeTwistLimits sets JointConeTwistLimits on a 3DPhysics object. It takes jointID (an integer), swingSpan1 (a float), swingSpan2 (a float) and twistSpan (a float), and returns nothing. jointID is the id of a Joint object, obtained elsewhere in the 3DPhysics family.

Syntax

Physics3DJointConeTwistLimits(jointID integer, swingSpan1 float, swingSpan2 float, twistSpan float)

Parameters

NameType
jointIDinteger
swingSpan1float
swingSpan2float
twistSpanfloat

Every form returns

nothing

Example · generated

joint = Create3DPhysicsConeTwistJoint(1, 1, 1, 1, 1)Physics3DJointConeTwistLimits(joint, 1.0, 1.0, 1.0)DO  Sync()LOOP

Create3DPhysicsConeTwistJoint is there to give the call something to act on; Physics3DJointConeTwistLimits 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