Minimal physics engine with a game loop.