Gravity basics in Unity (How to add gravitational fields to game objects)
ZeroKelvinTutorials ZeroKelvinTutorials
1.64K subscribers
12,285 views
0

 Published On May 3, 2022

In this video I go over how to calculate gravity forces with newton's law of gravity in c#, then I show how I set it up in unity with so that I could control which objects attract and which objects are attracted to these attractors.

Project can be found here: https://github.com/ZeroKelvinTutorial...


Disclaimer: while highly experienced with it, I am no expert on gravity.

Note: the earth/sun simulation is not to actual sun/earth scale, just something i put together to show how something could seem to not be moving while moving

#unity #tutorial #gamedev #physics

show more

Share/Embed