nstgeorge / VEKTA

A space exploration game created in Processing 3 with orbital mechanics
MIT License
1 stars 1 forks source link

Increase planet mass on collision #7

Closed nstgeorge closed 5 years ago

nstgeorge commented 5 years ago

When a planet collides with another planet, by default the planet that is larger by mass will survive, and the other planet is removed. I'd like for the larger planet's mass to increase by the mass of the planet that collides with it. This may cause enormous changes to the universe generation over time, as large planets will become even larger.

nstgeorge commented 5 years ago

Also increase the radius of the larger planet by sqrt(r)/pi or something like that, where r is the radius of the smaller planet.

nstgeorge commented 5 years ago

Work for this is being done on the enhancement-7 branch.

nstgeorge commented 5 years ago

Resolved in 70d5bdd