Simple physics engine.