Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Simulation scaling down units

Discussion in 'Physics' started by VascoCorreia, Dec 6, 2022.

  1. VascoCorreia

    VascoCorreia

    Joined:
    Dec 5, 2020
    Posts:
    23
    Hello!

    I am currently developing a simulation of the solar system and I wanted it to be realistic taking into account my current capabilities. At least gravity I want to be simulated accurately.
    Everything needs to be scaled down (distances, masses).

    The scaling factor I am using for distance is 1 unit = 100000 (km).
    And the mass scaling factor is 1 = 1,00e+25.


    With this said, I am having difficulty figuring out how to scale the gravitational constant for Newtonian gravitation law.
    Its value is: 6.674e-11 (s^3 * kg^-1 * s^-2)

    Considering my scaling factors how would I calculate the correct value for the gravitational constant for my simulation?

    Hopefully, the question is clear, For any clarification just ask and I will try to explain as best as possible.
    Thanks in advance!
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,599
    Edy likes this.
  3. Gotmachine

    Gotmachine

    Joined:
    Sep 26, 2019
    Posts:
    38
    Why ? If you're doing it in thinking you will avoid 32bit float precision issues the short answer is that you won't.