Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision Detection on Collection #25

Open
david-wagstaff opened this issue Aug 1, 2021 · 1 comment
Open

Collision Detection on Collection #25

david-wagstaff opened this issue Aug 1, 2021 · 1 comment

Comments

@david-wagstaff
Copy link

I have 1000 shapes for which I need to collision check against each other. Big O is killing me. In spite of my previous issue I submitted on optimization, that sort of optimization is minor at best when my bottle neck is n^2 checks. A good way to think about it is "What's better than a very fast collision detection between two circles?" Avoid checking two circles whenever possible.

Again, I WOULD NOT CHANGE ANYTHING in the current book. It's perfect. You may wish to add an appendix on an efficient collection that doesn't need n^2 checks. A quadtree is the only one I know about. I'm sure there are more options.

@jeffThompson
Copy link
Owner

Ditto your other issue: thanks for the suggestion! Broad-phase collision is another one I've been looking into. Any suggestions for improving performance would be very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants