Click or drag to resize
AB4D logo

InstancedMeshNodeGetNextHitResult 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.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public 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