I'm currently working on 3D project (C++) and I have now come to writing the collision detection systems.
Basically my question is regarding how to architect it.
All the collisions are either between AABB-AABB or AABB-circle. I'm perfectly aware how to detect whether any two objects are colliding, but I don't know where to do the checks.
Currently I am trying to make a CollisioManager class that contains a list of all the AABBs in the level and then the player object makes a call to the CollisionManager to ask whether it is currently colliding with any (then acts accordingly).
I think I can do it this way but are there any other ways of organizing it as it feels a bit messy and not the cleanest of solutions.