What it does
Physics3DTwistJointMotorRotationTarget sets TwistJointMotorRotationTarget on a 3DPhysics object. It takes jointID (an integer) and rotationVec3ID (an integer), and returns nothing. jointID is the id of a Joint object, obtained elsewhere in the 3DPhysics family.
Syntax
Physics3DTwistJointMotorRotationTarget(jointID integer, rotationVec3ID integer)Parameters
| Name | Type |
|---|---|
| jointID | integer |
| rotationVec3ID | integer |
Every form returns
nothing
Example · generated
joint = CreateWeldJoint(1, 1, 100.0, 120.0, 1)Physics3DTwistJointMotorRotationTarget(joint, 1)DO Sync()LOOPCreateWeldJoint is there to give the call something to act on; Physics3DTwistJointMotorRotationTarget 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.