aabbOverlap

fun aabbOverlap(bodyA: CollisionBodyInterface, bodyB: CollisionBodyInterface): Boolean

Checks whether two body's AABB's overlap in world space.

Return

Boolean value of whether the two bodies AABB's overlap in world space.

Parameters

bodyA

First body to evaluate.

bodyB

Second body to evaluate.


fun aabbOverlap(boxA: AxisAlignedBoundingBox, boxB: AxisAlignedBoundingBox): Boolean

Method to check if two AABB's overlap. Can be seen as world space.

Return

Boolean value of whether two bounds of the AABB's overlap.

Parameters

boxA

First AABB to evaluate.

boxB

Second AABB to evaluate.