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( float x, float y, float z, float vx, float vy, float vz, out XSprite sprite ) |
Parameters
- x
- Type: System..::.Single
The X coordinate of the ray origin.
- y
- Type: System..::.Single
The Y coordinate of the ray origin.
- z
- Type: System..::.Single
The Z coordinate of the ray origin.
- vx
- Type: System..::.Single
The ray direction in the X axis.
- vy
- Type: System..::.Single
The ray direction in the Y axis.
- vz
- Type: System..::.Single
The ray direction in the Z axis.
- sprite
- Type:
SGP.XSpace..::.XSprite
%
Returns the first XSprite sprite that the ray intersected.