Coding Challenge #98.3: Quadtree Collisions - Part 3

Subscribers:
1,750,000
Published on ● Video Link: https://www.youtube.com/watch?v=z0YFFg_nBjw



Duration: 17:47
76,299 views
2,333


In this multi-part coding challenge, I implement a Quadtree data structure in JavaScript and visualize it with p5.js. Code: https://thecodingtrain.com/challenges/98-quadtree

p5.js Web Editor Sketches:
đŸ•šī¸ Quadtree Parts 1 & 2: https://editor.p5js.org/codingtrain/sketches/g7LnWQ42x
đŸ•šī¸ Quadtree - Part 3: https://editor.p5js.org/codingtrain/sketches/CDMjU0GIK

Other Parts of this Challenge:
đŸ“ē Quadtree - Part 1: https://youtu.be/OJxEcs0w_kE
đŸ“ē Quadtree - Part 2: https://youtu.be/QQx_NmCIuCY

đŸŽĨ Next video: https://youtu.be/KtPpoMThKUs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đŸŽĨ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
💾 Quadtree repo: https://github.com/CodingTrain/QuadTree
🗄 Quadtree on Wikipedia: https://en.wikipedia.org/wiki/Quadtree

Live Stream Archive:
🔴 Quadtree Live Stream: https://youtu.be/MxnqJGwu2cc

Related Coding Challenges:
🚂 #65 Binary Tree: https://youtu.be/ZNH0MuQ51m4
🚂 #68 Breadth-First Search: https://youtu.be/piBq7VD0ZSo
🚂 #72 Frogger: https://youtu.be/giXV6xErw0Y

Timestamps:
0:00 Quadtree Part 3--apply the algorithm to particle system collisions
1:05 Start with a Particle class
2:29 Add particle checking
6:00 Add the quadtree
9:01 Add userdata property to the point object
10:39 Re-create quadtree object every frame
12:52 Query a circular range
17:00 Conclusion and suggested variations

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
đŸ’Ŧ Discord: https://discord.gg/hPuGy2g
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
đŸ–‹ī¸ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

đŸŽĨ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đŸŽĨ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#quadtreedatastructure #quadtreecollisiondetection #javascript #p5js







Tags:
live
programming
daniel shiffman
creative coding
coding challenge
tutorial
coding
challenges
coding train
the coding train
live stream
itp nyu
class
challenge
codingtrain
code challenge
code
quadtree tutorial
quadtree collision detection
quadtree implementation
quadtree example
quadtree data structure
quadtree representation
quadtree javascript
quadtree js
quadtree particle
quadtree particle system