Uploaded October 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
π Springy Chain with matter.js Code:
π Using matter.js built-in render: editor.p5js.org/pattvira/sketches/XZqYlEI5S
π Using p5.js: editor.p5js.org/pattvira/sketches/zkMXLc5b_
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π matter.js: brm.io/matter-js
π matter.js playlist: youtube.com/playlist?list=PL0beHPVMklwgaLt1xHqlKNvPZ7nKjHnH3
π ml5.js+matter.js sketch by Golan Levin: editor.p5js.org/golan/sketches/y4AIaY3Xu
Timestamps:
0:00 Intro
0:46 Create two circle bodies and a fixed ground
7:46 Use Constraint module to join two bodies
12:53 Create a new Composite in order to chain multiple bodies together
21:31 Use MouseConstraint to make mouse interact with bodies
24:43 Use p5.js to render
30:05 What's coming next? Hint: matter.js + ml5.js!
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
π Springy Chain with matter.js Code:
π Using matter.js built-in render: editor.p5js.org/pattvira/sketches/XZqYlEI5S
π Using p5.js: editor.p5js.org/pattvira/sketches/zkMXLc5b_
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π matter.js: brm.io/matter-js
π matter.js playlist: youtube.com/playlist?list=PL0beHPVMklwgaLt1xHqlKNvPZ7nKjHnH3
π ml5.js+matter.js sketch by Golan Levin: editor.p5js.org/golan/sketches/y4AIaY3Xu
Timestamps:
0:00 Intro
0:46 Create two circle bodies and a fixed ground
7:46 Use Constraint module to join two bodies
12:53 Create a new Composite in order to chain multiple bodies together
21:31 Use MouseConstraint to make mouse interact with bodies
24:43 Use p5.js to render
30:05 What's coming next? Hint: matter.js + ml5.js!










