NiftyNico / UniverseSim

MIT License
0 stars 0 forks source link

Octree Collision Detection #11

Closed programmingmind closed 9 years ago

programmingmind commented 9 years ago

Use the Octrees to help with collision detection

programmingmind commented 9 years ago

Idea for collision detection:

Make an Octree Keep the current vector of masses for each mass, find all leaf nodes where the bounding box overlaps with a radius sized bounding box if a collision occurs, remove the masses from the vector and add a new one like we're doing then we also need to remove the masses from the octree, and add a new mass

So for the Octree we need to make a new method that can find these colliding masses for a given position and radius, without the use of an iterator

programmingmind commented 9 years ago

done, with 100,000 objects being simulated

NiftyNico commented 9 years ago

the dream