android - Rotation of Orthographic Camera -
i able rotate camera code
camera.zoom = 3//in constructor if(camera.zoom>1) { camera.zoom-=0.01f; camera.rotate(15); } this done in render, zooming effect works when zooming completes screen stay rotated current angle. below.
i want screen stops after zooming @ 0 degree.
in code snippet
**camera.zoom=3;** and in each iteration zooming camera 0.01 till camera.zoom > 1 have total 20 iteration zooming
then rotate 18 degree angle after iteration rotate in 360 degree.
Comments
Post a Comment