|
GeometryMeshHitTest Method |
HitTest method test the triangles defined in this mesh for hitting with the specified ray.
When getOnlyNextHitTest is false, then the closest hit result is returned, else the next hit result is returned.
When no hit is found, null is returned.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax public DXRayHitTestResult HitTest(
ref Ray localRay,
DXHitTestContext hitTestContext,
int startTriangleIndex,
bool getOnlyNextHitTest
)
Parameters
- localRay Ray
- SharpDX.Ray in local SceneNode coordinate system
- hitTestContext DXHitTestContext
- DXHitTestContext
- startTriangleIndex Int32
- triangle index where to start looking for hit. Note that this is not an index in the triangle indices array (index buffer) but triangle index - index in triangle indices array is get by multiplying this value by 3.
- getOnlyNextHitTest Boolean
- When getOnlyNextHitTest is false, then the closest hit result is returned, else the next hit result is returned.
Return Value
DXRayHitTestResultDXRayHitTestResult when hit is found or null when no hit is found
See Also