A simple 3D simulation of a solar system with a sun and a few planets which can have moons. It uses physics to calculate the distance, mass and radius of the planets around it and then moves accordingly
Software - Unity, GitHub
Language - C#
Team size - 1 Person
All the planets in the system have there own PhysicsBody which constantly calculates a few things. First it will calculate the direction it wants to go by checking the other planets there position and subtracting it from its own position. Then it will calculate its force by multiplying the direction, the gravity, its own mass and the mass of the other planet. And lastly it will calculate its acceleration by dividing the force by its own mass.
Each planets visuals are created with the use of a shader. First it creates a sphere out of 6 curved planes which you can than apply different noise filters too. Each noise filter has a few different settings: filter type, strength, number of layers, base roughness, roughness, persistence, center, minimum value and with the rigid filter type a weight multiplier. Also all the planets have there own gradient which looks at the elevation of the planet and then applies the gradient depending on how high the terrain is.