Click or drag to resize

AABBIntersects Method

Returns true if the AABB overlaps with `b` (i.e. they have at least one point in common). If `includeBorders` is true, they will also be considered overlapping if their borders touch, even without intersection.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool Intersects(
	AABB with,
	bool includeBorders = false
)

Parameters

with
Type: GodotAABB
The other AABB to check for intersections with.
includeBorders (Optional)
Type: SystemBoolean
Whether or not to consider borders.

Return Value

Type: Boolean
A bool for whether or not they are intersecting.
See Also