Move Camera Freely Around Object While Looking at It

Posted by Alex_Hyzer_Kenoyer on Game Development See other posts from Game Development or by Alex_Hyzer_Kenoyer
Published on 2012-12-12T00:07:16Z Indexed on 2012/12/12 5:17 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

I've got a 3D model loaded (a planet) and I have a camera that I want to allow the user to move freely around it. I have no problem getting the camera to orbit the planet around either the x or y axis. My problem is when I try to move the camera on a different axis I have no idea how to go about doing it. I am using OpenGL on Android with the libGDX library. I want the camera to orbit the planet in the direction that the user swipes their finger on the screen.

© Game Development or respective owner

Related posts about opengl

Related posts about java