|
DXMultiMeshGeometry3DHitTest Method |
Hit test the specified ray against this mesh and returns the closest hit result or null if no hit is found.
Namespace: Ab3d.DirectX.ModelsAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax public DXRayHitTestResult HitTest(
ref Ray localRay,
DXHitTestContext hitTestContext,
int startTriangleIndex,
bool getOnlyNextHitTest
)
Parameters
- localRay Ray
- ray transformed to local coordinate system
- hitTestContext DXHitTestContext
- DXHitTestContext
- startTriangleIndex Int32
- index of the triangle where the hit testing will begin - triangle indice index is get by multiplying this number by 3
- getOnlyNextHitTest Boolean
- when true, then the next hit result is returned; when false all hit results are get and only the closest to the ray origin is returned.
Return Value
DXRayHitTestResultDXRayHitTestResult when ray hits the mesh otherwise null is returned
See Also