SpriteRayCastSingle

Description

Casts a ray through a particular sprite (can be physics or non physics) and stores the result of any intersection. 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. This function is special in that it also works on all sprites even those that do not have physics turned on, but the sprite must have been assigned a shape using one of the sprite shape commands.

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

Definition

integer SpriteRayCastSingle( sprite, x, y, x2, y2 )

Parameters