Ce que fait la commande
Physics3DJointConeTwistLimits règle JointConeTwistLimits sur un objet 3DPhysics. Il prend jointID (un entier), swingSpan1 (un flottant), swingSpan2 (un flottant) et twistSpan (un flottant), et ne rend rien. jointID est l'identifiant d'un objet Joint, obtenu ailleurs dans la famille 3DPhysics.
Syntaxe
Physics3DJointConeTwistLimits(jointID integer, swingSpan1 float, swingSpan2 float, twistSpan float)Paramètres
| Nom | Type |
|---|---|
| jointID | integer |
| swingSpan1 | float |
| swingSpan2 | float |
| twistSpan | float |
Chaque forme rend
rien
Exemple · engendré
joint = Create3DPhysicsConeTwistJoint(1, 1, 1, 1, 1)Physics3DJointConeTwistLimits(joint, 1.0, 1.0, 1.0)DO Sync()LOOPCreate3DPhysicsConeTwistJoint est là pour donner à l'appel quelque chose sur quoi agir : Physics3DJointConeTwistLimits est la ligne qui compte. La boucle DO … LOOP n'est pas décorative : un programme BASIC classique s'arrête dès qu'il n'a plus de lignes, et c'est Sync() qui dessine l'image.