Jump to content
  • Advertisement
Sign in to follow this  
X5-Programmer

3D Orbit Camera.

This topic is 4463 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I have been looking around for a orbit camera class for a while now but I cant find any good ( smooth ) ones, If anyone know were I can find one I will be glad. I know ppl hate questions like this :S well I hope anyone can point me somewere. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
What do you mean by an 'orbit camera class'? What, in fact, is an orbit camera anyway?

It's simple enough to create position and view vectors for a circular orbit:
position = (sin(time * some_factor), cos(time * some_factor) * cos(inclination), sin(inclination));
view = -position; // camera looks at the object it orbits


So simple, in fact, that I'm sure that's not what you meant ...

Share this post


Link to post
Share on other sites
This thread contains my source for an orbit camera:

http://www.gamedev.net/community/forums/topic.asp?topic_id=382489

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!