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.
弹球布局原型(灰盒)
三球路布局验证版:A 发射直落 · B 左外环绕顶 · C 右上斜槽技巧线。
Space Pinball
复古太空主题完整弹球游戏:蓄力发射、任务链、倍率与奖励转盘。
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
.