Free Q2 Map Viewer
Click here to go to the Q2View program

Collision Detection & Response



By Alan Baylis 15/06/2001



Collision detection and response is one of the most important parts of a game and also one of the hardest parts to write if you want a good collision response that slides up stairs and around corners. I have adapted my collision routine from the tutorial and source by Kasper Fauerby - aka Telemachos though I have omitted the parts related to ellipsoid collision detection. The reason for this is because the ellipsoid method used in the tutorial fails to account for a rotated ellipsoid; when the camera rotates, the ellipsoid used for the camera collision is still axis aligned. So for now I use it as a unit sphere collision routine and will work on a new routine later.

Copyright © 1998 - 2010 Alan Baylis, All Rights Reserved