 |
MeshOctreeNodeHitTest Method |
Hit test a ray against the triangles in this and child MeshOctreeNodes and returns the closest hit result.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic RayHitTestResult? HitTest(
ref Ray ray,
HitTestContext hitTestContext,
float zeroTolerance = 1E-07f
)
Parameters
- ray Ray
- Ray
- hitTestContext HitTestContext
- HitTestContext
- zeroTolerance Single (Optional)
- optional float that defines the zero tolerance - if value is smaller that this value, then it is considered zero. It is recommended that this value is based on the mesh's size. Default value is 1e-7.
Return Value
RayHitTestResultRayHitTestResult when ray hits a triangle otherwise null is returned
See Also