Click or drag to resize
Ab4d.SharpEngine logo

TriangleMeshTGetClosestHitResult Method

GetClosestHitResult method returns a RayHitTestResult with the closest triangle hit by the specified ray. When no triangle is hit, null is returned.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public RayHitTestResult? GetClosestHitResult(
	ref Ray localRay,
	HitTestContext hitTestContext
)

Parameters

localRay  Ray
Ray in local SceneNode coordinate system
hitTestContext  HitTestContext
HitTestContext

Return Value

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

Implements

IRayHitTestedObjectGetClosestHitResult(Ray, HitTestContext)
See Also