This video shows a simulation of gravitation in Unity. The video shows how each object affected each other. The spin movement of the massiv central object shows how the small objects with low mass can affect a massiv object. If an object hit the central object it will be destroyed and a new one is spawned.

Every object starts at a random position with a random mass and a random velocity vector. The gravitation is calculated by Newton’s Law of Gravity. F = G * (m1 * m2)/r^2 G = gravitational constant

https://en.wikipedia.org/wiki/Gravita…