Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The Gravity Box

A sandbox game about the gravity in the little things · By HenryCGS

how did you get the physics calculations right?

A topic by ErrArachnica created Apr 03, 2019 Views: 301 Replies: 2
Viewing posts 1 to 2

3D gravity is something ive tried hard to work on, but realistic orbiting is something i havent attempted to replicate

can you tell me some sources on the physics math here?

(+1)

The beauty of gravity and orbital mechanics (the classic, newtonian version) is that everything just boils down to a single equation, the law of universal gravitation. The gravitational force between any two objects is always

F = Gm₁m₂/d²

Just making it so everything attracts everything else using that equation is all there is to it. Realistic orbits and orbital mechanics just emerge naturally!

neat, the simple versions ive run so far just attracted an object towards the center point with a distance-variabled gravity level