Stack Gems
Menu
← Catalog

Matter.js

MIT 2D rigid-body physics, not a Phaser replacement

Graphics & 3D / Physics · OSS/MIT · 18.4k

What's Good

MIT. 2D rigid bodies, constraints, collisions, sleeping. Drop next to PixiJS, KAPLAY, or a raw canvas. Docs and demos at brm.io/matter-js.

The Catch

Loud: Phaser already ships Matter physics. If you are on Phaser, you already have this. This gem is for Pixi/KAPLAY/canvas, not a second physics stack inside Phaser. Distinct from Phaser (full engine) and howler.js (audio sprites).

Verdict

The MIT 2D rigid-body lib. Use it off Phaser; on Phaser you already have Matter.

Embed

Reviewed on Stack Gems
[![Reviewed on Stack Gems](https://stackgems.com/badge/matter-js.svg)](https://stackgems.com/gems/matter-js)