Ce que fait la commande
ObjectSphereSlide prend objID (un entier), oldx (un flottant), oldy (un flottant), oldz (un flottant), newx (un flottant), newy (un flottant), newz (un flottant) et radius (un flottant), et rend un entier. objID est l'identifiant d'un objet 3D, celui que LoadObject a rendu : c'est ainsi que l'appel sait sur quoi agir.
Syntaxe
ObjectSphereSlide(objID integer, oldx float, oldy float, oldz float, newx float, newy float, newz float, radius float) → integerParamètres
| Nom | Type |
|---|---|
| objID | integer |
| oldx | float |
| oldy | float |
| oldz | float |
| newx | float |
| newy | float |
| newz | float |
| radius | float |
Chaque forme rend
integer
Exemple · engendré
object = LoadObject("assets/media.obj")DO Print(ObjectSphereSlide(object, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)) Sync()LOOPLoadObject est là pour donner à l'appel quelque chose sur quoi agir : ObjectSphereSlide 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.