Sign in to follow this  
Chumad

Oribt camera - calculate new point?

Recommended Posts

Chumad    122
I'm creating a star field simulator where the user can click a star then use the mouse to 'orbit' the camera around the star. I can detect when the mouse moves in a certain direction - either up/down/left or right. The part I need help with is calculating the new camera position if the mouse moves in any of those directions. In my mind, to do this, I can imagine a large sphere, with the center of it being the point the camera is orbitting. I just don't know how to calculate the new camera position based on the direction the mouse moved. Any help? Thanks

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