What it does
Physics3DJointHingeLimits sets JointHingeLimits on a 3DPhysics object. It takes jointID (an integer), minAng (a float) and maxAng (a float), and returns nothing. jointID is the id of a Joint object, obtained elsewhere in the 3DPhysics family.
Syntax
Physics3DJointHingeLimits(jointID integer, minAng float, maxAng float)Parameters
| Name | Type |
|---|---|
| jointID | integer |
| minAng | float |
| maxAng | float |
Every form returns
nothing
Example · generated
joint = Create3DPhysicsHingeJoint(1, 1, 1, 1, 1)Physics3DJointHingeLimits(joint, 1.0, 1.0)DO Sync()LOOPCreate3DPhysicsHingeJoint is there to give the call something to act on; Physics3DJointHingeLimits 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.