Calculates the modelRay ray intersection with the mesh of the sprite, in local coordinates.

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
protected virtual bool ModelRayIntersect(
	XRay modelRay,
	XSpriteRayIntersectFlags flags,
	ref XSpriteRayIntersectionInfo info,
	XCameraCullMode cameraCull
)

Parameters

modelRay
Type: SGP.XSpace..::.XRay
The XRay ray.
flags
Type: SGP.XSpace..::.XSpriteRayIntersectFlags
Restrains for the ray intersection with the 3D world object.
info
Type: SGP.XSpace..::.XSpriteRayIntersectionInfo %
Gets information about the ray intersection with the 3D world object.
cameraCull
Type: SGP.XSpace..::.XCameraCullMode
Defines what kind of surfaces can the ray hit.

Return Value

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

See Also