Sign in to follow this  

libgdx trackball camera, how?

Recommended Posts

lacroix    108

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:


How can I implement is in libgdx?




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