Ce que fait la commande
PhysicsRayCast prend x (un flottant), y (un flottant), x2 (un flottant) et y2 (un flottant), et rend un entier.
Syntaxe
PhysicsRayCast(x float, y float, x2 float, y2 float) → integerParamètres
| Nom | Type |
|---|---|
| x | float |
| y | float |
| x2 | float |
| y2 | float |
Chaque forme rend
integer
Exemple · engendré
DO Print(PhysicsRayCast(100.0, 120.0, 1.0, 1.0)) Sync()LOOPPhysicsRayCast est appelé et sa réponse est affichée à chaque image. 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.