So I am making a cube-based game. I intend all in-world objects to be box-shaped. So, I ought to use AABBs for collision right?
My question is, once I detect a collision, how do I actually respond to it?
So I am making a cube-based game. I intend all in-world objects to be box-shaped. So, I ought to use AABBs for collision right?
My question is, once I detect a collision, how do I actually respond to it?
Physically correct collision of two axis aligned boxes rarely results in two axis aligned boxes. This basically boils down to how realistic you want your collision response to be.
Well, I want Minecraft-like collisions.
The blocks in minecraft would be best represented by AABBs. But the player is probably represented by a swept sphere. Super easy/fast collision detection between the two.