Click or drag to resize
AB4D logo

HitTester Class

HitTester is a class that can be used do a hit testing on a mesh data with vertex and index buffer. The static methods in this class take a Ray, various types of vertex buffers, index buffer and a few flags and returns a hit test result.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXHitTester

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public static class HitTester

The HitTester type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAddAllMeshHitResults Adds all hit returns to the specified list of DXRayHitTestResult objects. Added hit results are sorted from the closest to the farthest hit test.
Public methodStatic memberHasTriangleSameOrientation Returns true when the triangle specified with 3 positions (its normal) and a ray with specified rayDirection are facing in the same direction.
Public methodStatic memberHitTest(Ray, PositionNormal, Int32, Boolean, Int32, Boolean) Hit test a ray against the mesh with specified vertex and index buffer.
Public methodStatic memberHitTest(Ray, PositionNormalTexture, Int32, Boolean, Int32, Boolean) Hit test a ray against the mesh with specified vertex and index buffer.
Public methodStatic memberHitTest(Ray, PositionTexture, Int32, Boolean, Int32, Boolean) Hit test a ray against the mesh with specified vertex and index buffer.
Public methodStatic memberHitTest(Ray, Vector3, Int32, Boolean, Int32, Boolean) Hit test a ray against the mesh with specified vertex and index buffer.
Top
See Also