5.19: Matter.js: Deleting Bodies - The Nature of Code

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



Duration: 11:26
27,206 views
414


This video is the third in a series on the matter.js physics engine. Here I look at how to delete off-screen bodies from the physics world, removing them from both my particle array as well as Matter.world.

Next video: https://youtu.be/szztTszPp-8

Support this channel on Patreon: https://patreon.com/codingtrain

Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbow-Topics

Contact:
Twitter: https://twitter.com/shiffman
The Coding Train website: http://thecodingtrain.com/

Links discussed in this video:
Matter.js: http://brm.io/matter-js/
The Nature of Code: http://natureofcode.com/
My Nature of Code playlist on Physics Engines: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6akvoNKE4GAxf6ZeBYoJ4uh


Source Code for the all Video Lessons: https://github.com/CodingTrain/Rainbow-Code

p5.js: https://p5js.org/
Processing: https://processing.org

For More Nature of Code videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YVljJvFRCyRM6mmF5wMPeE
For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
For an Intro to Programming using p5.js: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

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







Tags:
JavaScript (Programming Language)
programming
daniel shiffman
creative coding
coding challenge
p5.js tutorial
p5js
tutorial
javascript
coding train
physics
physics engine
collision detection js
collision detection javascript
matter.js
physics javascript
physics engine p5.js
physics engine intro
introduction physics library
intro physics engine
intro matter.js
intro physics
intro physics javascript
nature of code
deleting bodies matter.js