[REQ] System Designer Input Tab

Discussion in 'Mod Discussions' started by totalannihilation, June 1, 2014.

  1. totalannihilation

    totalannihilation Active Member

    Messages:
    215
    Likes Received:
    168
    I would like to ask for a mod to add a new tab in the system desginer input for planets
    it shoudl changed the parameters Position (X/Y) and Velocity (Vx/Vy) for something more "physically treatable"
    Here is the actual tab display:

    [​IMG]

    The main parameters are:
    • Minimum distance (a.k.a. Perihelion)
    • Maximum distance (a.k.a. Aphelion)
    • Elipse Tilt

    the minimum distance will be referenced as rp
    the maximum distance will be referenced as ra
    the elipse tilt will be referenced as theta. Theta must be entered in degrees, and dont forget to convert to radians, as most internal pre-built functions use radians argument
    The tilt follows the trigonometric referential: 0 at the right, 90 at the top, 180 at the left and 270 at the bottom.
    GM is a reference to the gravity constant * sun mass and, meanwhile, its value is 500000000 (in engineering: 5e8, in scientific: 5*10^8)


    I believe (not so sure), that the game can only generate the orbit with the X and Y informations, so the mod must also do some internal calculations and fill these spots for the game engine

    the formulas to make these transformations are: (my idea is always starting at aphelion)
    Position X:
    X=cos(theta)*ra
    Position Y:
    Y=sin(theta)*ra
    Velocity X:
    Vx=-sin(theta)*sqrt(2*GM*rp/(ra*(rp+ra)))
    Velocity Y:
    Vy=cos(theta)*sqrt(2*GM*rp/(ra*(rp+ra)))


    I hope I made clear enough, feel free to make any questions

    EDIT: changed one formula that I screwed up with the minus sign
    Last edited: June 1, 2014
  2. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Don't people just click and drag the planet to set that?
  3. totalannihilation

    totalannihilation Active Member

    Messages:
    215
    Likes Received:
    168
    clicking and dragging is just too manual, and may not guarantee to reach desired values
    and when you have more than one planet, click and drag will almost never have 2 planets with the same orbit line, which means they are more likely to cross each other eventually
    cptconundrum likes this.

Share This Page