Objects need to subscribe to OVERLAP_EVENT and COLLISION_EVENT and what they get back is an event with a the pair of objects that collided.
One of the objects though will always be the subscriber, so it would be nice if the events they get back just has the reference to the other object so that we don't have to always do
bool overlapperIs(OverlapEvent* e, Object* o) {
return e->getFirstObject() == o || e->getSecondObject() == o; // one of these two will always be the subscriber!
}
They could receive an event such as
e->getOther(); // pointer to the other object