Skip to main content

join_is_not_empty

Function join_is_not_empty 

Source
pub fn join_is_not_empty(aabb1: &WorldAabb, aabb2: &WorldAabb) -> bool
Expand description

Tests if two shapes have a non-empty intersection (boolean AND operation).

This is used for “new collision” detection in movement validation.

§Arguments

  • aabb1 - First AABB (typically entity’s position after movement)
  • aabb2 - Second AABB (typically a block collision shape)

§Returns

true if the AABBs intersect (have overlapping volume), false otherwise.

Matches: Shapes.joinIsNotEmpty(shape1, shape2, BooleanOp.AND)