 |
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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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