4 ms·
I'm building a Web and iOS game (https://brawlbugs.com https://brawlbugs.com) as a side project and started implementing collision detection from scratch. Terr
by upmostly 3y ago
I'm building a Web and iOS game (https://brawlbugs.com https://brawlbugs.com) as a side project and started implementing collision detection from scratch.
Terrible idea. Use a library like this if you're in the JavaScript ecosystem:
https://www.npmjs.com/package/detect-collisions https://www.npmjs.com/package/detect-collisions
- wegfawefgawefg 3y agoGood idea for education though. Quadtrees and rtrees are simple enough you can roll your own in a couple hours and get your nlogn query performance.