PHY RAY CAST Perform a ray cast and check if a collision occurs between the ray and any objects.
Syntax
    Return Integer=PHY RAY CAST(Float Value, Float Value, Float Value, Float Value, Float Value, Float Value)
    Return Integer=PHY RAY CAST(Float Value, Float Value, Float Value, Float Value, Float Value, Float Value, Integer Value)
Parameters
    originX#
Float origin of the ray on the X axis
    originY#
Float origin of the ray on the Y axis
    originZ#
Float origin of the ray on the Z axis
    directionX#
Float direction of the ray on the X axis
    directionY#
Float direction of the ray on the Y axis
    directionZ#
Float direction of the ray on the Z axis
    type
Integer use 0 to test against all rigid bodies, 1 for dynamic rigid bodies and 2 for static rigid bodies
Returns
A value of 1 is returned if the ray hit an object whereas 0 is returned if the ray did not hit an object
Description
The type parameter allows you to specify testing against all rigid bodies, only dynamic rigid bodies or only static rigid bodies.
Example Code

    No example code is provided for this command