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. enter image description here

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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -