Gravity Simulation

  Рет қаралды 18,912

JOrbits

JOrbits

Күн бұрын

Simulating gravity in unity
Music: • Space Ambient Mix 14 -...

Пікірлер: 31
@Ing_Failure
@Ing_Failure 2 жыл бұрын
Really curious to see how, even though all object started at random position they arrange their orbits into a single direction
@jorbitsgames
@jorbitsgames 2 жыл бұрын
It's probably that one direction wins, like a coin toss. I could try to make more simulations and see if it is a 50/50 chance.
@howiestillgamez5326
@howiestillgamez5326 2 жыл бұрын
@@jorbitsgames Yeah, they will slowly pull the other particles in a direction which pulls more particles and then it just speeds up the pulling until most of them are going one direction.
@basachternaam90
@basachternaam90 2 жыл бұрын
Just like physics on earth, there is a resultant force on an object. It is the combined force of all forces that are influencing the object at a particular moment. It's basically the vector that tells you in what direction an object will go. When a gas cloud collapses into itself and produces a star with a planetary system, the matter comes from all directions. However, the gas was not evenly distributed, nor could it be. As a result there must be a direction of momentum that was more dominant than all else. Every particle had a direction, mass and velocity. A lot of them will have opposite directions and velocities, cancelling each other out by colliding with one another or gravitational pull. Eventually, only one direction of momentum will have had the highest impact. No matter how evenly distributed the gas was or how small the resultant force, with time the disc will become more regular and orderly, as this process is never ending. The resultant force not only tells you about the direction of the spin, but the orientation of the disc's axis as well. It applies to all celestial bodies I think.
@tavhoyle
@tavhoyle 2 жыл бұрын
Right?! The way the orbits stabilized so quickly has me going back to research relativity lol
@syrathdouglas1244
@syrathdouglas1244 2 жыл бұрын
1:17 Smack
@FloL00L
@FloL00L 7 жыл бұрын
hypnoticing af
@avpruler
@avpruler 7 жыл бұрын
Any way to download this?
@johnlagerquist8227
@johnlagerquist8227 7 жыл бұрын
What integration scheme did you use?
@jorbitsgames
@jorbitsgames 7 жыл бұрын
Sry, I don't really know what you mean. In Unity?
@adomasjarmalavicius2808
@adomasjarmalavicius2808 2 жыл бұрын
its just the newtons law probably , i made stuff like this myself, but it didint was successful.
@NovaEngineer69
@NovaEngineer69 2 жыл бұрын
WHAT IS THE GAME WHERE DO I DOWENLOAD IT PLS
@thomaslemon7882
@thomaslemon7882 2 жыл бұрын
It's closer to a whorl pool simulation, but close
@jorbitsgames
@jorbitsgames 2 жыл бұрын
I think I increased the strength of gravity by about 100, otherwise it would've been too slow for an interesting video and everything would just collapse to one blob.
@MadhawaSadil
@MadhawaSadil 2 жыл бұрын
So this is how our solar system is made..
@guillegeox
@guillegeox 2 жыл бұрын
Hermoso ❤❤❤
@pocztowka2
@pocztowka2 2 жыл бұрын
This is not even newtonian gravity :P angular momentum seems to come from nowhere and orbits are not elyptical lol :D
@elweewutroone
@elweewutroone 2 жыл бұрын
The angular momentum is from collisions and tides. The orbits are elliptical, but they precess because of gravitational interactions between the ‘moons’.
@fatitankeris6327
@fatitankeris6327 2 жыл бұрын
@@elweewutroone Some people believe to have rulers in their eyes and whole libraries in their head, coming to wrong assumptions...
@jorbitsgames
@jorbitsgames 2 жыл бұрын
The video is from 2017 so I'm not entirely sure anymore, but I think I used newtons law for gravity. This simulation should serve as something cool to look at, rather then an actual scientific simulation and there are tons of reasons why it is not acurate. To name a few: - The real world is not 2D - I increased the strength of gravity by about 100, otherwise it would've been too slow for an interesting video - Physics Engines in Games are in no way perfect - Matter does not change form in this simulation - Heat is not simulated ...
@stefanopetrone9900
@stefanopetrone9900 2 жыл бұрын
if the initial angular momentum of the system is 0 then in any time the angolar momentum will be 0, unless external forces (we need to know how collision work in this simulation). also in this simulation there are few particles that orbits in the other direction that escape from the screen, so it seems that all the particles are orbiting in the same direction, so we need to summ angular momentum of all particles (even ones out of screen) to claim that there is an angolar momentum out of nowhere. for the elliptical orbits well...some ellipses are very close to circles...like planets orbits
@reedledabeetle
@reedledabeetle 2 жыл бұрын
@@jorbitsgames this is actually a surprisingly accurate simulation of the formation of planets and moons. It is good enough in fact that it shows how planets in solar systems all spin in the same direction. Great job with this, it's sick
@Lou-li5mv
@Lou-li5mv 2 жыл бұрын
hey, can I ask an eli5 question? in this Sim it looks like after a while of spinning around the large object, the small particles get closer and closer to the center until they merge with the large object. why don't the planets of the solar system do the same?
@GermanTutorials
@GermanTutorials 2 жыл бұрын
Small numerical errors due to limited precision in floating point arithmetic when solving the differential equations underlying gravitational dynamics. ELI5: Computers can only approximate physics but only to a certain degree, because computers can only calculate with finite numbers (while physics is done analytically, meaning exact in this context)
@Thatchannel69
@Thatchannel69 2 жыл бұрын
Because the sun Is 99.8% of the Mass of the solar sistem
@Jonassoe
@Jonassoe 2 жыл бұрын
Now do it again in 3D and see if the debris forms a disc
@ellisd3165
@ellisd3165 2 жыл бұрын
we all have ancestors that survived this
Coding Adventure: Solar System
12:12
Sebastian Lague
Рет қаралды 856 М.
PVKK Gameplay (Exclusive)
24:31
IGN
Рет қаралды 400 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 32 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 99 МЛН
N-Body Simulation
4:43
a2flo
Рет қаралды 85 М.
Comparison of the Most Painful Punishments
15:42
ECHOES
Рет қаралды 2,1 МЛН
Gravity Simulation in Unity
2:23
domtom9dev
Рет қаралды 4 М.
Collision of planetesimals (SPH simulation)
2:04
Pavel Ševeček
Рет қаралды 226 М.
this can't be real.
10:16
Low Level
Рет қаралды 206 М.
Training AI Bots to Fight (they started dancing)
15:06
cozmouz
Рет қаралды 285 М.
The Big Bang - Part 1
8:12
SolarBalls
Рет қаралды 318 М.
Falling Into the Sun (Simulation)
3:46
Stargaze
Рет қаралды 768 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,5 МЛН