Ce que fait la commande
Physics3DStaticPlaneRotation règle StaticPlaneRotation sur un objet 3DPhysics. Il prend planeID (un entier), angX (un flottant), angY (un flottant) et angZ (un flottant), et ne rend rien. planeID est l'identifiant d'un objet Plane, obtenu ailleurs dans la famille 3DPhysics.
Syntaxe
Physics3DStaticPlaneRotation(planeID integer, angX float, angY float, angZ float)Paramètres
| Nom | Type |
|---|---|
| planeID | integer |
| angX | float |
| angY | float |
| angZ | float |
Chaque forme rend
rien
Exemple · engendré
plane = CreateObjectPlane(64.0, 64.0)Physics3DStaticPlaneRotation(plane, 1.0, 1.0, 1.0)DO Sync()LOOPCreateObjectPlane est là pour donner à l'appel quelque chose sur quoi agir : Physics3DStaticPlaneRotation 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.