Ce que fait la commande
ObjectRayCast prend objID (un entier), oldx (un flottant), oldy (un flottant), oldz (un flottant), newx (un flottant), newy (un flottant) et newz (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
ObjectRayCast(objID integer, oldx float, oldy float, oldz float, newx float, newy float, newz float) → integerParamètres
| Nom | Type |
|---|---|
| objID | integer |
| oldx | float |
| oldy | float |
| oldz | float |
| newx | float |
| newy | float |
| newz | float |
Chaque forme rend
integer
Exemple · engendré
object = LoadObject("assets/media.obj")DO Print(ObjectRayCast(object, 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 : ObjectRayCast 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.