Physics3DJointPositionVector

Famille: 3DPhysics · Une forme

Ce que fait la commande

Physics3DJointPositionVector prend jointID (un entier), et rend un entier. jointID est l'identifiant d'un objet Joint, obtenu ailleurs dans la famille 3DPhysics.

Syntaxe

Physics3DJointPositionVector(jointID integer) → integer

Paramètres

NomType
jointIDinteger

Chaque forme rend

integer

Exemple · engendré

joint = CreateWeldJoint(1, 1, 100.0, 120.0, 1)DO  Print(Physics3DJointPositionVector(joint))  Sync()LOOP

CreateWeldJoint est là pour donner à l'appel quelque chose sur quoi agir : Physics3DJointPositionVector 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.

144 commandes dans 3DPhysics