2D physics simulation