Rotates the object in 2D space