Calculates the localRay ray intersection with the sprite and its child sprites, in local coordinates.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public virtual bool RayIntersect(
	XRay localRay,
	out XSpriteRayIntersectionInfo info,
	XSpriteRayIntersectFlags flags,
	XCameraCullMode cameraCull,
	XSprite exceptSprite,
	float maxWorldDistance
)

Parameters

localRay
Type: SGP.XSpace..::.XRay
The XRay ray in local coordinates.
info
Type: SGP.XSpace..::.XSpriteRayIntersectionInfo %
Gets information about the ray intersection with the 3D world object.
flags
Type: SGP.XSpace..::.XSpriteRayIntersectFlags
Restrains for the ray intersection with the 3D world object.
cameraCull
Type: SGP.XSpace..::.XCameraCullMode
Defines what kind of surfaces can the ray hit.
exceptSprite
Type: SGP.XSpace..::.XSprite
The XSprite sprite that will be excluded from the ntersection.
maxWorldDistance
Type: System..::.Single
Maximal allowed ray length.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the ray intersects any 3D world object.

See Also