Used x coordinate to store angle in the x-z plane.