5.17: Introduction to Matter.js - The Nature of Code
This video is an introduction to the Matter.js, a 2D JavaScript physics library that supports rigid body collisions and constraints. In this video I show you how to set up your code to use the library in combination with p5.js for rendering. Code: https://thecodingtrain.com/tracks/the... š¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... š„ Previous: Ā Ā Ā ā¢Ā 5.7Ā PathĀ FollowingĀ (Steering)Ā -Ā NatureĀ ofĀ ...Ā Ā š„ Next: Ā Ā Ā ā¢Ā 5.18:Ā IntroductionĀ toĀ Matter.jsĀ ContinuedĀ ...Ā Ā š„ All: Ā Ā Ā ā¢Ā TheĀ NatureĀ ofĀ CodeĀ Ā References: š Nature of Code: https://nature-of-code-2nd-edition.ne... š Matter.js: https://brm.io/matter-js/ Videos: š Matter.js playlist: Ā Ā Ā ā¢Ā 5.17:Ā IntroductionĀ toĀ Matter.jsĀ -Ā TheĀ Natu...Ā Ā Timestamps: 0:00 Introduction to Matter.js 1:50 Simple Example 2:30 Getting started 3:40 Module aliases 5:15 Creating bodies in the world 6:04 Matter.js documentation 7:51 Engine.run() is deprecated 8:58 Use the physics engine to figure out the location of the box 10:07 Data tracked about the object 13:13 Adding a body to the world 14:40 Refactor code 19:00 Add a ground 19:51 Static Bodies 22:23 Drawing elements in a way that matches expectation of physics engine 27:07 Add options for friction and restitution. 30:42 Increase thickness of the ground 31:44 Outro Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound š Website: https://thecodingtrain.com/ š¾ Share Your Creation! https://thecodingtrain.com/guides/pas... š© Suggest Topics: https://github.com/CodingTrain/Sugges... š” GitHub: https://github.com/CodingTrain š¬ Discord: https://thecodingtrain.com/discord š Membership: http://youtube.com/thecodingtrain/join š Store: https://standard.tv/codingtrain šļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā šø Instagram: Ā Ā /Ā the.coding.trainĀ Ā š„ Coding Challenges: Ā Ā Ā ā¢Ā CodingĀ ChallengesĀ Ā š„ Intro to Programming: Ā Ā Ā ā¢Ā StartĀ learningĀ here!Ā Ā š 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-o... This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod... #physicsengine #matterjs #p5js #javascript

5.18: Introduction to Matter.js Continued - The Nature of Code

Introduction to Zephyr Part 1: Getting Started - Installation and Blink | DigiKey

Coding Challenge #59: Steering Behaviors

p5.js Coding Tutorial | Introduction to matter.js š“ šŖ

Android 17 sucks. So I put Linux on a phone.

Keynote: After the AI Hype ā Whatās Real, and Whatās Next - Richard Campbell - 2026

The Strange Math That Predicts (Almost) Anything

Coding Challenge 124: Flocking Simulation

Turning Images into Dots: The Magic of Dithering

You Know This Song (but the Orchestra Doesnāt) | Jacob Collier & VSO School of Music Orchestra | TED

Professor Answers Coding Questions | Tech Support | WIRED

Don't Hang Up On AI Scammers. Do THIS Instead.

Creative Coding with p5.js in Visual Studio Code

Why AI Agents are either the best or worst thing weāve ever built

The French Do Not Care About Work

I Investigated The World's Skinniest vs Fattest City

Coding Angry Birds in JavaScript

I Hate Modern Desks... So I Built This.

"Clean" Code, Horrible Performance

