Click or drag to resize
AB4D logo

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.Utilities
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
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

Boolean
true when the specified BoundingBox intersects with the mesh
See Also