• Advertisement
Sign in to follow this  

libgdx trackball camera, how?

This topic is 1436 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement