|
MeshColliderHasIntersection(Rect3D, Boolean) Method |
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.
Namespace: Ab3d.DirectX.UtilitiesAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax public bool HasIntersection(
Rect3D bounds,
bool checkEachCorner = true
)
Parameters
- bounds Rect3D
- bounds as Rect3D
- checkEachCorner Boolean (Optional)
- when true (by default) then center position and all 8 corners of the Rect3D are checked for intersection; when false only bounding box intersection check is done
Return Value
Booleantrue when the specified Rect3D intersects with the mesh
See Also