Skip to main content

check_overlap

Function check_overlap 

Source
pub fn check_overlap(world: &dyn WorldHandle, aabb: &Aabb) -> bool
Expand description

Checks if an AABB overlaps any solid block in the world.

Iterates all block positions that the AABB spans and returns true if any of them are solid. Used for ground detection and simple collision checks.