that is in relationship to the sun instead of the earth..
Or more precisely. I want both. The one orbit now shows the moon
going around the earth. It is always in reference to the Earth and
always elipitcal...even when seen from the point of the sun.
My question is:
How do I create an additional path that shows the orbit that the "moon"
leaves around the sun, instead of the "moon around the earth"??
It would be some kind of ring wave looking trace, I believe.
I am looking for some C++ code here...right now I am using..
Code: Select all
Point3d pos = body->getOrbit()->positionAtTime(t);
..to get the postitions of the moon over time.
I then create a GL_LINE_STRIP to replay the position data.
Problem is the new path stays with the earth...here is a partial
drawn path...see how it is relational to the earth...not the sun?
Did I make myself clear?
Can anyone help here.
In anticipation and thanks,
neoniv