PhysicsRayCastCategory

Famille: 2DPhysics · Une forme

Ce que fait la commande

PhysicsRayCastCategory prend category (un entier), x (un flottant), y (un flottant), x2 (un flottant) et y2 (un flottant), et rend un entier.

Syntaxe

PhysicsRayCastCategory(category integer, x float, y float, x2 float, y2 float) → integer

Paramètres

NomType
categoryinteger
xfloat
yfloat
x2float
y2float

Chaque forme rend

integer

Exemple · engendré

DO  Print(PhysicsRayCastCategory(1, 100.0, 120.0, 1.0, 1.0))  Sync()LOOP

PhysicsRayCastCategory 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