Sign in to follow this  
X5-Programmer

3D Orbit Camera.

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
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

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