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