Click or drag to resize
AB4D logo

IRayHitTestedObjectGetNextHitResult Method

GetNextHitResult method continues hit testing from the previously returned hit test and returns a DXRayHitTestResult with the next hit triangle (not necessary the next closest triangle) or null if no other triangle is hit. This method can be used to get all hit results.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
DXRayHitTestResult GetNextHitResult(
	ref Ray localRay,
	DXHitTestContext hitTestContext,
	DXRayHitTestResult previousHitResult
)

Parameters

localRay  Ray
SharpDX.Ray in local SceneNode coordinate system
hitTestContext  DXHitTestContext
DXHitTestContext
previousHitResult  DXRayHitTestResult
DXRayHitTestResult as result of the previous call to GetNextHitResult method or null if this is the first time this method is called

Return Value

DXRayHitTestResult
DXRayHitTestResult with the next triangle hit or null when no triangle is hit
See Also