PhysicsRayCast

Description

Casts a ray through all physics objects including sprites that have physics turned on and stores the closest item hit. Results of a ray cast can be retrieved using the other ray cast functions such as GetRayCastNormalX.

If the ray starts inside a shape that shape will not be counted in the results.

Returns 1 if there was a collision, 0 if not.

Definition

integer PhysicsRayCast( x, y, x2, y2 )

Parameters