Sign in to follow this  
Followers 0
lacroix

libgdx trackball camera, how?

0 posts in this topic

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

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0