Development How does gravity work in Galacticraft.

Matthew A

Member
Nov 9, 2014
60
9
8
23
Wisconsin USA
mattparks.net
This was a old question I had while creating addons for Galacticraft, how does this gravity system work? Yes you could have random numbers do the work for you but what if you wanted a accurate gravity system??? Is there like a formula where you multiply the planets gravity (m/s^2) or not?

Thanks if someone has figures this out, I'm sick of putting in close to what feels right numbers.
 

pra

Member
Mar 7, 2015
328
120
43
36
Overworld
From what I figured out, the number you return in your WorldProvider is actually subtracted from the default gravity, which seems to be 0.08D. I decided to save gravity in g (aka, 1 = Overworld's gravity), so the formula to get the subtrahend from this is 0.08D * (1-relativeGravity)
 

Share this page