physics-matter

Integrate Matter.js physics into Phaser 4 games for rigid bodies and constraints.

Updated Jun 23, 2026
One-click install
npx skills add https://github.com/Joshua-Allen/stake-engine-game-dev --skill physics-matter-joshua-allen
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: physics-matter
Source: https://github.com/Joshua-Allen/stake-engine-game-dev/tree/main/skills/physics-matter
Command: npx skills add https://github.com/Joshua-Allen/stake-engine-game-dev --skill physics-matter-joshua-allen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phaser, matter-js, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides the ability to integrate Matter.js physics into Phaser 4 games, allowing for complex physics interactions and mechanics.

Core Features & Use Cases

  • Matter.js Physics: Offers full-body physics, rigid bodies, constraints, composite bodies, sensors, collision filtering, world configuration, and advanced physics shapes.
  • Use Case: Use this Skill to create physics-based mechanics in your Phaser 4 game, such as realistic collisions, dynamic object interactions, and complex character movement.

Quick Start

Integrate Matter.js physics into your game by adding the 'physics-matter' skill.

Frequently Asked Questions about physics-matter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Matter.js physics into a Phaser 4 game?▼

To integrate Matter.js physics into a Phaser 4 game, use this Skill to enable rigid bodies, constraints, composite bodies, and collision filtering for realistic physics interactions. It configures the physics world and supports advanced shapes.

Can I use Matter.js sensors and collision filtering with Phaser 4?▼

Yes, Matter.js sensors and collision filtering are fully supported in Phaser 4 through this Skill. You can configure complex collision events and detect object overlaps without generating physical responses.

Does Phaser 4 support rigid bodies and composite physics objects?▼

Phaser 4 supports rigid bodies and composite objects by integrating the Matter.js library. This Skill provides the mechanism to bind them together, allowing dynamic object interactions and complex character movement.

What do I need to set up physics-based mechanics in Phaser 4?▼

You need the Phaser 4 and Matter.js libraries installed as dependencies to set up physics-based mechanics. This Skill bridges them to handle world configuration, rigid bodies, and constraints.

Why use Matter.js for game development physics instead of other options?▼

Use Matter.js for game development physics when you need full-body rigid body dynamics, composite bodies, and advanced constraints. It integrates directly into Phaser 4 to handle complex mechanics that simpler physics engines cannot.