Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

libgdx trackball camera, how?

4: Adsense

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   

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






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.