Click or drag to resize
AB4D logo

GeometryMeshGetClosestHitResult Method

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

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public DXRayHitTestResult GetClosestHitResult(
	ref Ray localRay,
	DXHitTestContext hitTestContext
)

Parameters

localRay  Ray
SharpDX.Ray in local SceneNode coordinate system
hitTestContext  DXHitTestContext
DXHitTestContext

Return Value

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

Implements

IRayHitTestedObjectGetClosestHitResult(Ray, DXHitTestContext)
See Also