Jump to content

  • Log In with Google      Sign In   
  • Create Account


libgdx trackball camera, how?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 lacroix   Members   -  Reputation: 108

Like
0Likes
Like

Posted 17 February 2014 - 11:10 AM

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



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS