Garry's Mod Wiki

util.IsBoxIntersectingBox

  boolean util.IsBoxIntersectingBox( Vector boxMin, Vector boxMax, Vector box2Min, Vector box2Max )

Description

Performs a box-box intersection and returns whether there was an intersection or not.

Arguments

1 Vector boxMin
The minimum extents of the Axis-Aligned box.
2 Vector boxMax
The maximum extents of the Axis-Aligned box.
3 Vector box2Min
The minimum extents of the second Axis-Aligned box.
4 Vector box2Max
The maximum extents of the second Axis-Aligned box.

Returns

1 boolean
true if there is an intersection, false otherwise.