Examples showing how to combine p5.js and matter.js.
- 01-basics
- 02-mouse
- 03-catapult
- 04-stacks
- 05-constraints
- 06-x
- 07-bridge
- 08-wrap-coordinates
- 09-propeller
- 10-reverse-gravity
- 11-sprites
- 12-attractor
- 13-array-boxes-wrap
- 14-mass-centre-weeble
- 15-speed-dating-lottery
- 16-jumping-ball
- 17-flipper-kicker
- 18-change-size
- 19-restitution-bouncy-grounds
- 20-complex-path-svg
- 21-hit-sound
- 22-scroll-follow
- 23-sprites-canvas-sandwich
- 24-add-remove-bodies
- 25-ribbon-queue
The examples have been derived from the course Programmiertes Entwerfen (Sketching with Code) @ the HfG Schwäbisch Gmünd by Benedikt Groß.
Some of the examples are based on the matter.js demos and p5-matter by Daniel Shiffman.
👀 It is also highly recommended to watch the Introduction to Matter.js videos by Coding Train to complement the examples here.