5.21: Matter.js: Mouse Constraints - The Nature of Code

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



Duration: 14:04
30,782 views
518


In this video, I demonstrate how to use mouse constraints with matter.js to add mouse interaction to a p5.js physics simulation sketch.

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

Help us caption & translate this video!

http://amara.org/v/4rhx/

📄 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
mouse constraints
mouse constraints matter.js