Reputation: 11369
I'm trying to create an arcball camera for use in my 3D Android game (note: I am using the libGDX framework)... I am having trouble figuring out how to go about creating it. I can probably extend the current PerspectiveCamera
class in libGDX and add some logic to handle the arcball rotations around a sphere, but I need an explanation about how it works. I am still learning OpenGL ES but I think I'm at a good point to attempt this.
Upvotes: 1
Views: 1228
Reputation: 6025
I found your question and this (stackoverflow) answer while looking for the same thing myself.
I haven't tried the code out myself yet, so I can't confirm whether it works or not.
I'm going to need something similar myself for my game idea, just wanted to make sure I've got everything I need ;-) .
Let us know if this does the job.
Cheers
Upvotes: 2