libgdx trackball camera, how?

Started by
-1 comments, last by lacroix 10 years, 1 month ago

I am currently rotate my camera in this way:


                camera.rotateAround( Axis.ORIGO, Axis.X, MyGestureListener.mYSpan );
                camera.rotateAround( Axis.ORIGO, Axis.Y, MyGestureListener.mXSpan );

But it is a weird rotation, I need something like this: https://threejsdoc.appspot.com/doc/three.js/examples/webgl_trackballcamera_earth.html

How can I implement is in libgdx?

Thanks,

Leslie

This topic is closed to new replies.

Advertisement