How does a collison engine work?

Posted by JXPheonix on Game Development See other posts from Game Development or by JXPheonix
Published on 2012-03-30T21:04:46Z Indexed on 2012/03/30 23:43 UTC
Read the original article Hit count: 213

Filed under:

Original question: Click me

How exactly does a collision engine work?

This is an extremely broad question. What code keeps things bouncing against each other, what code makes the player walk into a wall instead of walk through the wall? How does the code constantly refresh the players position and objects position to keep gravity and collision working as it should?

If you don't know what a collision engine is, basically it's generally used in platformer games to make the player acutally hit walls and the like. There's the 2d type and the 3d type, but they all accomplish the same thing: collision.

So, what keeps a collision engine ticking?

© Game Development or respective owner

Related posts about collision-detection