Creates the ray and performs the intersection with the 3D world.
            
    Namespace: 
   SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
| C# | 
|---|
public Vector3 RayIntersect( Vector3 origin, Vector3 direction, out float distance )  | 
Parameters
- origin
 - Type: Vector3
The Vector3 coordinates of the ray origin. 
- direction
 - Type: Vector3
The ray direction Vector3 vector . 
- distance
 - Type: 
            System..::.Single
          %
Returns the distance of the sprite intersection from the observer.