Click or drag to resize
AB4D logo

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

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