In this episode of The Coding Train, I provide an overview of physics engines. I a discuss a variety of libraries and the factors that go into picking an engine: 2D vs. 3D, collision detection, efficiency, etc.

I also take a look at the JavaScript physics engine Matter.js. I discuss you how to use this library for collisions in a p5.js sketch.

20:28 – Intro to Physics Engines
54:40 – Q&A on Physics Engines
1:10:13 – Intro to Matter.js
1:55:56 – Conclusion/short Q&A

Support this channel on Patreon:

Send me your questions and coding challenges!:

Contact:
Twitter:
The Coding Train website:

Links discussed in this video:
Box2D:
toxiclibs:
Bullet Physics Library:
Cannon.js:
Matter.js:
This Dot Song:
The Nature of Code:
My Nature of Code playlist on Physics Engines:
My Coding Challenge on 3D Cloth with toxiclibs:

Source Code for the all Video Lessons:

p5.js:
Processing:

For an Introduction to Programming:
For my Nature of Code videos:
For More Live Streams:
For More Coding Challenges:

Help us caption & translate this video!