Click or drag to resize
AB4D logo

MeshCollider Methods

The MeshCollider type exposes the following members.

Methods
 NameDescription
Public methodGetClosestPosition GetClosestPosition returns a DXRayHitTestResult with HitPosition set to the closest position on the mesh, DistanceToRayOrigin is set to the distance from the specified position to the position on the mesh and TriangleIndex is set to the position index in the Positions array (or vertex buffer array).
Public methodHasIntersection(MeshBase) Returns true when the specified mesh intersects with the mesh that was used to create this MeshCollider.
Public methodHasIntersection(BoundingBox, Boolean) Returns true when the specified BoundingBox intersects with the mesh. When checkEachCorner is false, then only a simple bounding box intersection check is done. This is the fastest but the least accurate. When checkEachCorner is true (by default), then the center position and all 8 corners of the BoundingBox are checked for intersection.
Public methodHasIntersection(MeshBase, Matrix) Returns true when the specified mesh intersects with the mesh that was used to create this MeshCollider.
Public methodHasIntersection(MeshGeometry3D, Transform3D) Returns true when the specified MeshGeometry3D intersects with the mesh that was used to create this MeshCollider.
Public methodHasIntersection(Rect3D, Boolean) Returns true when the specified Rect3D intersects with the mesh. When checkEachCorner is false, then only a simple bounding box intersection check is done. This is the fastest but the least accurate. When checkEachCorner is true (by default), then the center position and all 8 corners of the Rect3D are checked for intersection.
Public methodIsInsideMesh(Point3D) Returns true when the specified position is inside the mesh.
Public methodIsInsideMesh(Vector3) Returns true when the specified position is inside the mesh.
Top
See Also