 |
MeshOctreeNodeGetAllHitResults Method |
Hit test a ray against the triangles in this and child MeshOctreeNodes and adds all hit result int the specified hitResults list.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void GetAllHitResults(
ref Ray ray,
HitTestContext hitTestContext,
List<RayHitTestResult> hitResults,
float zeroTolerance = 1E-07f
)
Parameters
- ray Ray
- Ray
- hitTestContext HitTestContext
- HitTestContext
- hitResults ListRayHitTestResult
- list of RayHitTestResult where the hit results are added
- 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
RayHitTestResult when ray hits a triangle otherwise null is returned
See Also