giulioforesto / planets

A 2D plotted planets movement simulator
0 stars 0 forks source link

Planet collision model #7

Closed gabrielfougeron closed 9 years ago

gabrielfougeron commented 9 years ago

A simple collision model has been coded : if two planets are too close from one another, then they will fuse.

At every change in masses, EVERY MASS is repeated. (in contrast with what was previously planned). The reason for this sudden change of mind is the realization that such events are EXTREMELY RARE, so that no memory overhead is unduced.

Is this ok with you, Gilulio ? If not, this behavior can be changed.

giulioforesto commented 9 years ago

Ok no pb. Modified code.