Ce que fait la commande
Physics3DRayCastContactPosition prend rayID (un entier), fractionIndex (un flottant) et outVec3ID (un entier), et rend un entier. rayID est l'identifiant d'un objet Ray, obtenu ailleurs dans la famille 3DPhysics.
Syntaxe
Physics3DRayCastContactPosition(rayID integer, fractionIndex float, outVec3ID integer) → integerParamètres
| Nom | Type |
|---|---|
| rayID | integer |
| fractionIndex | float |
| outVec3ID | integer |
Chaque forme rend
integer
Exemple · engendré
ray = Create3DPhysicsRay()DO Print(Physics3DRayCastContactPosition(ray, 1.0, 1)) Sync()LOOPCreate3DPhysicsRay est là pour donner à l'appel quelque chose sur quoi agir : Physics3DRayCastContactPosition 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.