I have always wondered how the physics engines in games and such actually worked. This is a simplified example of a physics engine for the case where the