 |
MeshOctreeHitTest Method |
HitTest method executes a ray hit test on this octree and returns a
RayHitTestResult with the closest triangle in this octree that is hit by the specified ray.
If not triangle is hit, null is returned.
To get all hit results call method.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic RayHitTestResult? HitTest(
ref Ray ray,
HitTestContext hitTestContext
)
Parameters
- ray Ray
- ray
- hitTestContext HitTestContext
- HitTestContext
Return Value
RayHitTestResultRayHitTestResult in case of a hit or null of no triangle is hit
See Also