I've been going completely insane with this very question, and choosing the absolute other route. I want to know where everything important in a particular system IS, how fast it's moving, and how the important distances change. (I'm thinking of having a political situation hinge on orbital positions and want it to make sense.)
In practical terms I don't recommend it :eyeroll:
Using LBB6 and significant help from Aramis, I'm figuring out orbital periods, the whole nine. I'm hoping it'll be easy to adapt to other planetary systems once I've figured it out for the one. 'Cause this is haaaaard.
Well, FYI, in a multi star system, the (X,Y) coords are relative to their star, and so worlds of the companion star add their star's (X,Y) coords to their own for figuring where they are in relation to the primary.
So
Star A is 0,0
P A1 is at -1,0
P A2 is ar 2,0
P A3 is at 0,4
Star B is at 7,4
P B1 figured at 1,0 from B is overall at (7+1,4+0)=8,4
P B2 figured at 0,-2 from B is overall at (7+0,4-2)=7,2
You can use columnar trickery/jiggery-poo to calculate the distances automatically as a single sheet.
It involves using multiple header rows...
You put the links to the current X & Y locations into two header rows which you hide.
So, we'll move the first line of data down two rows. This may take a bit of time to update for a large or complex system.
We put the date into the header, and use the rest of col A for names...
Date§ | | | | | | X: | =F4 | =F5 | =F6 | =F7 |
32 | | | | | | Y: | =G4 | =G5 | =G6 | =G7 |
Name | Period | Offset | distance | Current degrees | current X | Current Y | =A4 | =A5 | =A6 | =A7 |
Ayesh | 245 | 36 | 5 | =round(360*mod(($a$2+c4),b4)/b4,1) | =round(d4*sin(radians(e4)),2) | =round(d2*cos(radians(e2)),2) | =round(sqrt(((H$1-$F4)^2)+((H$2-$G4)^2)),2) | | | |
Besh | 452 | 400 | 15 | =round(360*mod(($a$2+c5),b5)/b5,1) | =round(d5*sin(radians(e5)),2) | =round(d5*cos(radians(e5)),2) | | | | |
Gemel | 452 | 400 | 15 | =round(360*mod(($a$2+c6),b6)/b6,1) | =round(d6*sin(radians(e6)),2) | =round(d6*cos(radians(e6)),2) | | | | |
Nut | 452 | 400 | 15 | =round(360*mod(($a$2+c7),b7)/b7,1) | =round(d7*sin(radians(e7)),2) | =round(d7*cos(radians(e6)),2) | | | | |
You then use fill commands to fill down from H3 to the bottom right corner.
Really, it's not hard to do, but grasping the concept isn't always easy to do.
Sine and Cosine are simply the fractions of the distance to draw a point along a circle. There are three systems of measuring angles and arcs in common use: Degrees (360), gradians (400), or radians (2π); I used the conversion routines because you're using a spreadsheet. Some calculators wand degrees, some want radians
if you need to manually convert, radians = π * degrees/180