![]() Topic awaiting preservation: Orbital Motion Algorithm (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() I am working on getting some basic information down for a project I am working on which will involve modeling the solar system (in a very basic way). The hard part I am coming up against is that I can not find a simple algorithm to present me with <x,y,z> coordinates for the position of the center of a sphere rotation around a fixed point in my case <0,0,0>. |
Bipolar (III) Inmate From: the uterus |
![]() quote:
|
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() No, I actually didn't know it even existed. |
Paranoid (IV) Inmate From: A graveyard of dreams |
![]() The usage of phi is a little bit different. 0 phi points straight up along the z-axis. That is why a phi of 0 gives you x=0, y=0. So to have the planet rotate in the xy-plane you've got to use phi=90 degrees. So sin(90)=1, cos(90)=0 and that gives you the following formulas: |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() Excellent, thanks a lot! |
Nervous Wreck (II) Inmate From: |
![]()
|