NiftyNico / UniverseSim

MIT License
0 stars 0 forks source link

Speed up collision detection #2

Closed programmingmind closed 9 years ago

programmingmind commented 9 years ago

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

programmingmind commented 9 years ago

Fixed with 0ee02a252a37a4c8ab6693adbe7e1ca9eaa715e2