physics-matter

Configure Matter.js physics simulations within Phaser 4 game environments.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill physics-matter-dominik-steinweg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-matter
Source: https://github.com/Dominik-Steinweg/Fragdachse/tree/main/.agents/skills/physics-matter
Command: npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill physics-matter-dominik-steinweg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill simplifies the complex setup and management of Matter.js physics engines within Phaser 4, removing the friction of configuring rigid bodies, constraints, and collision filtering.

Core Features & Use Cases

  • Physics Configuration: Easily manage world gravity, bounds, and engine settings like sleeping and debug rendering.
  • Body & Constraint Creation: Rapidly generate rigid bodies, compound shapes, and complex constraints like springs or joints.
  • Collision & Interaction: Implement advanced collision filtering, sensor zones, and pointer-based dragging interactions.
  • Use Case: Use this skill to build a platformer with realistic physics, such as creating a character with custom collision shapes or a complex machine using constraints and compound bodies.

Quick Start

Use the physics-matter skill to initialize a Matter.js world in your Phaser scene and add a dynamic sprite with a custom circular body.

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 scene?

To integrate Matter.js physics into Phaser 4, configure the MatterPhysics plugin to initialize the simulation engine. This handles rigid body creation, world gravity, and collision events directly within your game environment.

Can I create compound shapes and constraints for complex physics machines in Phaser?

Yes, you can rapidly generate compound shapes and complex constraints like springs or joints. This allows you to build interactive physics machines and characters with custom collision shapes within your Phaser scene.

How do I set up collision filtering and sensor zones in Matter.js?

Set up collision filtering and sensor zones by configuring the Matter.js engine settings. This approach enables advanced event-driven collision handling, allowing specific game objects to interact selectively without overlapping physical bodies.

Does Phaser 4 support debug rendering for Matter.js physics simulations?

Yes, Phaser 4 supports debug rendering for Matter.js physics simulations through the MatterPhysics plugin. This feature allows developers to visually inspect rigid bodies, constraints, and collision boundaries during runtime.