PhysicsRayCast

Famille: 2DPhysics · Une forme

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) → integer

Paramètres

NomType
xfloat
yfloat
x2float
y2float

Chaque forme rend

integer

Exemple · engendré

DO  Print(PhysicsRayCast(100.0, 120.0, 1.0, 1.0))  Sync()LOOP

PhysicsRayCast 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.

66 commandes dans 2DPhysics