Study these articles:

http://www.gaffer.org/game-physics/