Currently when two objects collide, they create a new object and then collision detection starts over from the beginning. Instead, we should mark the collided objects as having been in a collision and ignore them for the rest of the calculation. Then take all of the collided objects and make them into new combined planets. Then test collision detection only on these new planets, and repeat until no collisions occur
Currently when two objects collide, they create a new object and then collision detection starts over from the beginning. Instead, we should mark the collided objects as having been in a collision and ignore them for the rest of the calculation. Then take all of the collided objects and make them into new combined planets. Then test collision detection only on these new planets, and repeat until no collisions occur