Stack Gems
Menu
← Catalog

Matter.js

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

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

Reviewed 2026-09-03 · last push 2026-09-30 · repo checked 2026-10-21

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

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).

Verdict

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

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

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

HTML

<a href="https://stackgems.com/gems/matter-js"><img src="https://stackgems.com/badge/matter-js.svg" alt="Matter.js reviewed on Stack Gems" height="20"></a>