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

[ad_1]
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:

Send me your questions and coding challenges!:

Contact:
Twitter:
The Coding Train website:

Links discussed in this video:
Matter.js:
The Nature of Code:
My Nature of Code playlist on Physics Engines:

Source Code for the all Video Lessons:

p5.js:
Processing:

For More Nature of Code videos:
For More Coding Challenges:
For an Intro to Programming using p5.js:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

15 responses to “5.21: Matter.js: Mouse Constraints – The Nature of Code”

  1. Kainine01 Avatar

    If anyone is having trouble getting this working like I did, add ~ Matter.Events.trigger(engine, 'tick'); into draw. For more info, look here: https://github.com/liabru/matter-js/issues/73

  2. CoffeeCatRailway Avatar

    hey Dan! i have a problem no matter what i do my code doesn't work?

  3. Ee Venn Soh Avatar

    More matter.js videos!

  4. Izzaki Avatar

    how to increase stiffness between object and mouse?

  5. MuabYT Avatar

    Machine Learning :0?

  6. Janko Bosch Avatar

    Really love this matter.js series. Thanks Dan

  7. Nola1222 Avatar

    Make an animated form or a non-animated form of the Hunger Games Simulator. That would be a good idea for a coding challange!

  8. klayveR Avatar

    I have just one question: Where do I find that wallpaper? It makes me happy, I'd love to have that 🙂

  9. yeri pratama Avatar

    how can I grow my beard to be like that?

  10. MajesticTictac Avatar

    Hi, I'm a new programmer and am wondering if you could make a video on everything you use so I have some options for what to use, also, could you make a video about how you make you videos? Thank you.

  11. Kaim Chipperman Avatar

    With matter.js and p5.js, you could probably create somewhat of an online videogame, a 2d side scroller with a story! it might take a lot more time that one made in C# or some other non-browser language, but it'd be fun.

  12. CarlosGonper Avatar

    Hello everyone, I started making fun coding challenges and courses for people who likes this type of videos.
    One of the challenges:
    https://youtu.be/li6gLiPx8f4

    Could anyone give this a like or tell me what do they think of the videos? Thanks for your time:)

  13. GamingButNotReally Avatar

    AMAZING vid as always!!

Leave a Reply

Your email address will not be published. Required fields are marked *