Make sure the camera does not go outside of the 2D world.