Click or drag to resize
Ab4d.SharpEngine logo

InstancedMeshNodeGetClosestHitResult 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.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.InstancedMeshNode.GetClosestHitResult(Ab4d.SharpEngine.Common.Ray@,Ab4d.SharpEngine.Common.HitTestContext)"]

See Also