-
- All Implemented Interfaces:
public class AxisAlignedBoundingBox.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static AxisAlignedBoundingBox.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Boolean
aabbOverlap(CollisionBodyInterface bodyA, CollisionBodyInterface bodyB)
Checks whether two body's AABB's overlap in world space. final Boolean
aabbOverlap(AxisAlignedBoundingBox boxA, AxisAlignedBoundingBox boxB)
Method to check if two AABB's overlap. -
-
Method Detail
-
aabbOverlap
final Boolean aabbOverlap(CollisionBodyInterface bodyA, CollisionBodyInterface bodyB)
Checks whether two body's AABB's overlap in world space.
- Parameters:
bodyA
- First body to evaluate.bodyB
- Second body to evaluate.
-
aabbOverlap
final Boolean aabbOverlap(AxisAlignedBoundingBox boxA, AxisAlignedBoundingBox boxB)
Method to check if two AABB's overlap. Can be seen as world space.
- Parameters:
boxA
- First AABB to evaluate.boxB
- Second AABB to evaluate.
-
-
-
-