Simulation scaling down units

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!

I think you mean m^3 there.

The checkmarked comment on this thread seems like an awesome starting point. Your magnitudes are quite a bit bigger. I would definitely think of their followup comment, and do all your physics in double with regular SI unit magnitudes.

https://space.stackexchange.com/questions/16717/am-i-supposed-to-modify-the-gravitational-constant-with-scale-and-why-do-fps-t

1 Like

Why ? If you’re doing it in thinking you will avoid 32bit float precision issues the short answer is that you won’t.