Uploaded September 2024 | Updated November 2026, 1 hour ago
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
Links:
π p5.js editor: editor.p5js.org
π Intro to matter.js Code:
π Without p5.js: editor.p5js.org/pattvira/sketches/D9kDZh1UN
π With p5.js: editor.p5js.org/pattvira/sketches/tsP4iEW2Y
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π matter.js: brm.io/matter-js
π AnyPixel: googlecreativelab.github.io/anypixel
π Nature of Code - Physics Libraries: natureofcode.com/physics-libraries
Timestamps:
0:00 Intro
2:04 What is matter.js
3:04 Key building blocks
6:31 Set up matter.js
7:54 Implement a minimal example
24:36 Integrate with p5.js
31:14 Create Rect and Ground classes
36:54 Add a new box when pressing the mouse
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
Links:
π p5.js editor: editor.p5js.org
π Intro to matter.js Code:
π Without p5.js: editor.p5js.org/pattvira/sketches/D9kDZh1UN
π With p5.js: editor.p5js.org/pattvira/sketches/tsP4iEW2Y
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π matter.js: brm.io/matter-js
π AnyPixel: googlecreativelab.github.io/anypixel
π Nature of Code - Physics Libraries: natureofcode.com/physics-libraries
Timestamps:
0:00 Intro
2:04 What is matter.js
3:04 Key building blocks
6:31 Set up matter.js
7:54 Implement a minimal example
24:36 Integrate with p5.js
31:14 Create Rect and Ground classes
36:54 Add a new box when pressing the mouse










