2D physics simulator