BoxCollisionDetector

Detects if two boxes have collided. The boxes can be any shape if needed.

Constructors

this
this()
Undocumented in source.

Members

Functions

areColliding
bool areColliding(Coordinate a, Coordinate b)

Tests two boxes together. Returns true on collision.

testAll
void testAll()

Tests all shapes for each other.

testSingle
void testSingle(int objectA)

Tests a single shape to every other on the list

Variables

cl
CollisionListener cl;
Undocumented in source.
objects
Coordinate[int] objects;
Undocumented in source.

Meta