 |
IRayHitTestedObjectGetClosestHitResult 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.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
SyntaxRayHitTestResult? GetClosestHitResult(
ref Ray localRay,
HitTestContext hitTestContext
)
Parameters
- localRay Ray
- Ray in local SceneNode coordinate system
- hitTestContext HitTestContext
- HitTestContext
Return Value
RayHitTestResultRayHitTestResult with the closest triangle hit or null when no triangle is hit
See Also