3d Orbit Rotation - Controllable

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
iam13013
Posts: 31
Joined: Sun Dec 04, 2005 11:06 pm

3d Orbit Rotation - Controllable

Post by iam13013 »

I'm trying to learn how to make an object rotate around another object as if it is in orbit. I'm not here begging for a snippet, I just want some direction in what I should search for the learn the actual math behind it. Any hints?
cdrwolfe
Posts: 100
Joined: Thu Nov 15, 2007 5:38 pm
Location: Cranfield University

Post by cdrwolfe »

I believe there is an flyCircle animator, however i'am not sure how powerful it is if you want to change things like the trajectory and ellipse shape etc.

Regards Wolfe
zeroZshadow
Posts: 43
Joined: Mon Dec 01, 2008 6:35 pm

Post by zeroZshadow »

yo, well thats pretty simple, you could:

1. parent the orbiting object to the object it orbits around on,
2. add an rotation animator with an offset ?

in opengl its pretty simple
instead of doing translation/rotation
you do rotation first, then translation (then rotation again if needed)

you should read a little about the matrices you use in 3d application if you really want to learn the math
iam13013
Posts: 31
Joined: Sun Dec 04, 2005 11:06 pm

Post by iam13013 »

I'm trying to allow the player to enter the vicinity of a planet, then the ship automatically goes into a sort of "Orbit Mode" but the player can still turn left or right and change the altitude. When the altitude is above a certain value, "Orbit Mode" will exit into free-flight mode. Matrices? I'll check that out.
Post Reply