Skip to main content
gamedev.net
🔒 Locked

3D Orbit Camera.

Started by X5-Programmer 2 replies 9.9k views
Original Post
X5-Programmer
X5-Programmer
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.
-[ thx ]-
Bob Janova
Bob Janova
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 ...
taby
taby
This thread contains my source for an orbit camera:

http://www.gamedev.net/community/forums/topic.asp?topic_id=382489
X5-Programmer
X5-Programmer
taby.

Thanks it helped alot.

cheers.
-[ thx ]-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.