JavaScript Physics
2D physics demos using
Matter.js
. Grab the source code from
the GitHub repo
.
Minimal Setup
Basic boilerplate code to get started with Matter.js.
Galton Board (Round 1)
Purposefully flawed demo showing beads stacking on a peg.
Galton Board (Round 2)
Beads falling through a field of pegs to create a bell curve distribution.
Matter Tools
Galton Board running within the Matter Tools UI.
Lightning Round
Collection of basic demos for various features.
Pinball
Physics-based pinball game. Use the left/right arrow keys for paddles.
Page Interactions
Example of Matter.js and the page interacting with each other.
Demos by
Will Boyd
.