Collision response
So, one of the problems I’ve met when writing a game engine was collision checking and response. I’ve tried it in 3D but it proved to be too difficult to me (yeah, I’m not exactly sharp). So the solution is - SAT. It’s a 2D algorithm but can be scaled to 3D. Basically you calculate a dot product and based on this calculate how much should the player object be moved back. It’s a neat algorithm so if you’re looking for a collison checking algorithm check it out.













