Ph · Physics

Why Can You Remove the Gravitational Constant in a Game Simulation?

Published By the 9to5Science editorial team

At a glance

  1. 1. Write the force law

    Newtonian gravity depends on G, the masses, and the distance between objects.

  2. 2. Choose simulation units

    Pick convenient reference units for length, mass, and time instead of using SI units.

  3. 3. Rescale the equation

    Choose the time unit so the numerical coefficient corresponding to G becomes one.

  4. 4. Keep the physics consistent

    Convert inputs and outputs consistently; setting G to one does not mean gravity has vanished.

Advertisement

A game does not have to use metres, kilograms, and seconds. By choosing its own units, it can make the number used for the gravitational constant equal to 1. The gravitational interaction has not disappeared: its strength is encoded in the relationship between the game’s units.

There is a second possibility: a game may use a simplified or tuned force law rather than physically accurate Newtonian gravity. In that case, it can omit the symbol GG and put the desired strength directly into its acceleration or force formula.

Where the constant appears

For two point masses, Newton’s law of gravitation is

F=Gm1m2r2,F = G\frac{m_1m_2}{r^2},

where FF is force, m1m_1 and m2m_2 are the masses, and rr is their separation. The gravitational constant has dimensions

[G]=length3mass time2.[G] = \frac{\text{length}^3}{\text{mass}\,\text{time}^2}.

That dimensional dependence is why the numerical value of GG changes when you change units. Its value in SI units is about 6.6743×10−11 m3 kg−1 s−26.6743\times10^{-11}\,\mathrm{m^3\,kg^{-1}\,s^{-2}}, but this number is not the strength of gravity by itself, independent of the units used to describe it.

How choosing units makes G equal to 1

Suppose the game measures length in units of L0L_0, mass in units of M0M_0, and time in units of T0T_0. Write physical quantities as

r=L0r′,m=M0m′,t=T0t′,r=L_0r',\qquad m=M_0m',\qquad t=T_0t',

where the primed quantities are the numbers used inside the simulation. Newton’s equation of motion can then be written in those units with a dimensionless coefficient

G′=GM0T02L03.G' = \frac{GM_0T_0^2}{L_0^3}.

Choose the time unit to satisfy

T0=L03GM0.T_0 = \sqrt{\frac{L_0^3}{GM_0}}.

Then G′=1G'=1. The game can use the simpler-looking equation without a separate numerical factor, as long as it uses these units consistently.

This is a standard form of nondimensionalization: rescale the variables so the equations contain fewer numerical constants. It does not change the underlying physical model.

A worked example

Imagine a simulation whose length unit is 100 m100\,\mathrm{m} and whose mass unit is 1010 kg10^{10}\,\mathrm{kg}. Using the SI value of GG, the time unit that sets G′=1G'=1 is

T0=(100 m)3(6.6743×10−11 m3 kg−1 s−2)(1010 kg)≈1.224×103 s.T_0 = \sqrt{\frac{(100\,\mathrm{m})^3}{(6.6743\times10^{-11}\,\mathrm{m^3\,kg^{-1}\,s^{-2}})(10^{10}\,\mathrm{kg})}} \approx 1.224\times10^3\,\mathrm{s}.

So one unit of game time is about 1,224 seconds, or 20.4 minutes. In this system, an object with a game mass of 1 has physical mass 1010 kg10^{10}\,\mathrm{kg}, and a game distance of 1 represents 100 metres. The numerical gravitational coefficient is 1, but the simulation still describes the same Newtonian interaction under those conversions.

In a real game, developers often choose scales for convenience rather than matching a particular physical system. They may also use a tunable parameter such as gravityStrength instead of implementing physical GG and realistic masses. That can produce playable motion without representing actual gravitational dynamics.

What “removing G” does not mean

You cannot simply delete GG from the SI force equation while leaving the masses, distances, and seconds unchanged. The result would have the wrong units and, in general, the wrong force. If you keep SI inputs, you need the SI value of GG or an equivalent coefficient that gives the same effect.

Likewise, writing G=1G=1 is a convention about units, not a claim that the measured constant is physically meaningless. A dimensional constant’s numerical value depends on the units used. Dimensionless quantities, by contrast, cannot be made equal to 1 merely by changing units.

Common mistakes

  • Thinking gravity has been switched off. In a rescaled equation, gravity is still acting; the coefficient has been absorbed into the units.
  • Changing only the displayed value of G. If the units are unchanged, replacing the SI value by 1 changes the model rather than merely simplifying it.
  • Confusing real gravity with a game’s gravity setting. A game parameter may control a deliberately exaggerated or simplified acceleration. It need not equal Newton’s gravitational constant.
  • Ignoring the rest of the simulation. Masses, distances, velocities, elapsed time, and any other forces must use compatible units for the model to behave as intended.

References

  1. Classical Mechanics, John R. Taylor
  2. NIST CODATA: Fundamental Physical Constants

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.