I have a question that seems very similar to calculating-point-around-circumference-of-circle-given-distance-travelled and calculating-point-on-a-circle-given-an-offset, but I don't believe they are quite the same. I'm not very good at math :/
I have planets orbiting a center planet (sun). This is in 3d-space, but only 2 are used so this is safe. The things I know are:
- The (x,y) position of the sun
(Sx, Sy)
. - The (x,y) position of planet A
(Ax, Ay)
. - The radius (or distance) from sun to A
(r)
. - The speed in which A is traveling along the orbit in Radians/sec
(s)
. - The time that has elapsed since A last moved along the orbit
(t)
.
What I'm looking for is some kind of formula to calculate the next (x,y) coordinate of planet A, based on it's current position, speed, and time elapsed.
Please explain the math behind this.. I know a little trig and I'm interested in learning more, especially since I'm tackling a very realistic space-simulation.