Physics3DSliderJointTargetMotorVelocity

Famille: 3DPhysics · Une forme

Ce que fait la commande

Physics3DSliderJointTargetMotorVelocity règle SliderJointTargetLinearMotorVelocity sur un objet 3DPhysics. Il prend jointID (un entier) et linearMotorVelocity (un flottant), et ne rend rien. jointID est l'identifiant d'un objet Joint, obtenu ailleurs dans la famille 3DPhysics.

Syntaxe

Physics3DSliderJointTargetMotorVelocity(jointID integer, linearMotorVelocity float)

Paramètres

NomType
jointIDinteger
linearMotorVelocityfloat

Chaque forme rend

rien

Exemple · engendré

joint = CreateWeldJoint(1, 1, 100.0, 120.0, 1)Physics3DSliderJointTargetMotorVelocity(joint, 1.0)DO  Sync()LOOP

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