Ce que fait la commande
Physics3DCharacterPosition règle CharacterControllerPosition sur un objet 3DPhysics. Il prend objID (un entier), posX (un flottant), posY (un flottant) et posZ (un flottant), et ne rend rien. objID est l'identifiant d'un objet 3D, celui que LoadObject a rendu : c'est ainsi que l'appel sait sur quoi agir.
Syntaxe
Physics3DCharacterPosition(objID integer, posX float, posY float, posZ float)Paramètres
| Nom | Type |
|---|---|
| objID | integer |
| posX | float |
| posY | float |
| posZ | float |
Chaque forme rend
rien
Exemple · engendré
object = LoadObject("assets/media.obj")Physics3DCharacterPosition(object, 1.0, 1.0, 1.0)DO Sync()LOOPLoadObject est là pour donner à l'appel quelque chose sur quoi agir : Physics3DCharacterPosition 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.