Search Unity

Physically Accurate Orbit Simulation

Discussion in 'Community Learning & Teaching' started by DaedalusCommunity, May 10, 2019.

  1. DaedalusCommunity

    DaedalusCommunity

    Joined:
    Jul 15, 2017
    Posts:
    4
    Hello Unity users! I'm working at an open source code for simulating elliptical orbits in Unity, I've made a few lessons on YouTube, and I was thinking that if anybody is interested in suggesting any changes and constructively criticizing the work I'm doing they're welcome :)
    The functions I've implemented so far are the following:
    • Making an object follow the elliptical path
    • Making the speed change according to the position on the path, and depending on G and the mass of the object
    • Visualizing the ellipse using a LineRenderer
    • Visualizing the position of Apoapsis and Periapsis on the ellipse
    I'm now working on rotating the orbit along the three axes and calculating the components of the speed, in order to, sooner or later, add a KSPish maneuver system.

    Let me know what you think:


    (In the first couple of videos I was actually kind of nervous lol)

    Oh, and a little (Off topic) treat for the intellectuals here:
     
    redguyReal likes this.
  2. redguyReal

    redguyReal

    Joined:
    Oct 1, 2019
    Posts:
    1
    nice this really helped also have you done a maneuver system?
     
  3. DaedalusCommunity

    DaedalusCommunity

    Joined:
    Jul 15, 2017
    Posts:
    4
    Nope, but I'm working on something similar to that