Click or drag to resize
Ab4d.SharpEngine logo

TriangleMeshTGetNextHitResult Method

GetNextHitResult method continues hit testing from the previously returned hit test and returns a RayHitTestResult 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: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public RayHitTestResult? GetNextHitResult(
	ref Ray? localRay,
	HitTestContext hitTestContext,
	RayHitTestResult? previousHitResult
)

Parameters

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

Return Value

RayHitTestResult
RayHitTestResult with the next triangle hit or null when no triangle is hit

Implements

IRayHitTestedObjectGetNextHitResult(Ray, HitTestContext, RayHitTestResult)
See Also