 |
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.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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