How does a collision 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/31 17:45 UTC
Read the original article Hit count: 281

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 platform 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