Unity Tutorial – Solar System with Unity Physics




In this video we create a solar system using Unity Physics, with two simple formulas (Newton’s law of universal gravitation and instant orbital speed). The setup is quite flexible and we can easily add new objects which will start orbit existing objects.

Newton’s law of universal gravitation: F = G * ((m1 * m2) / r2)
https://en.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation

Circular Orbital speed: v = ((G * M) / r)^0.5
https://en.wikipedia.org/wiki/Orbital_speed

– There is an error in the slide at 3:46, the elliptic orbit speed is the square root of G * M * (2/r – 1/a)
* a for alpha in the formula is the length of the semi-major axis of the elliptical orbit (not a the game object)

The Orbital speed can easily be changed to an elliptic orbit as explained in the video.

Timestamps:
0:00 – Intro
0:25 – Sizes and masses
2:01 – Gravity
3:46 – Orbital speed
5:10 – Adding a moon
5:46 – Outro

License and Attributions:
(intro/outro) The Road by Punk Rock Opera is licensed under a Attribution License.
(background music) L A T E N C Y by Mystery Mammal is licensed under a Attribution License.
https://creativecommons.org/licenses/by/4.0/
(Intro break)
Magic by Six Umbrellas is licensed under a Attribution-ShareAlike License. (Intro-Outro: sample)
License: https://creativecommons.org/licenses/by-sa/4.0/

Voir sur youtube

KA2Studio
Logo
Compare items
  • Total (0)
Compare
0