Improving the orbital bodies simulation

After getting the basic simulation up and running in my last post, I wanted to add some improvements to the simulation.

I wanted to be able to see what kind of orbit each body was following. After experimenting with a couple of different ideas I settled down on using the Unity3D particle generator components. A particle emitter is attached to each stellar body which emit particles at a steady steam as the bodies move. This causes them to leave a trail behind them which is easy to track.

Next step was to make it visually clear what mass different objects were, since currently they were all defaulting to a base size of 1. To accomplish this I updated the space gravity component so on startup the component would read in the mass of the stellar body and scale the body accordingly.

The simulation also looked a little bland so I added some random colors to the different bodies to help distinguish them.