physics-matter

Configure Matter.js rigid bodies, constraints, and sensors in Phaser 4 scenes.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/dzyamik/furry-match3 --skill physics-matter-dzyamik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-matter
Source: https://github.com/dzyamik/furry-match3/tree/main/.claude/skills/physics-matter
Command: npx skills add https://github.com/dzyamik/furry-match3 --skill physics-matter-dzyamik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables developers to configure and utilize Matter.js physics within Phaser 4 to create realistic 2D simulations, including rigid bodies, joints, sensors, and advanced collision handling.

Core Features & Use Cases

  • Rigid bodies, composites, and constraints for building complex physics systems.
  • Sensors and collision filtering to detect interactions without physical response.
  • World configuration, debug rendering, pointer dragging, and tilemap integration for interactive games.
  • Real-world use: create ragdolls, hinge joints, and physics-based puzzles.

Quick Start

Create a Phaser 4 scene with Matter.js enabled, set up gravity and world bounds, and spawn a draggable rectangle that collides with a ground plane.

Frequently Asked Questions about physics-matter

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

FAQPage Schema
How do I configure Matter.js physics in a Phaser 4 scene?

To configure Matter.js physics in Phaser 4, enable the physics engine in your scene, set up gravity and world bounds, and spawn rigid bodies like a draggable rectangle that collides with a ground plane.

Can I create sensors and collision filtering for rigid bodies in Phaser 4?

Yes, you can use sensors and collision filtering in Phaser 4 to detect interactions between rigid bodies without triggering a physical response, allowing for custom overlap detection.

How do I build complex physics systems with constraints and composite bodies?

You can build complex physics systems by using constraints and composite bodies to create joints, ragdolls, and hinges, enabling realistic mechanical interactions within your 2D simulation.

Does Matter.js support pointer dragging and debug rendering in Phaser games?

Yes, Matter.js supports pointer constraints for interactive dragging and includes debug rendering, allowing you to visualize rigid bodies, sensors, and world configuration across Phaser scenes.

What is the best way to integrate tilemaps with Matter.js physics in Phaser?

The best way to integrate tilemaps is by configuring the Matter.js world bounds and collision filtering to match your tile geometry, ensuring realistic rigid body interactions across the level.

Can I use advanced shapes for rigid bodies in Phaser 4 Matter.js simulations?

Yes, you can use advanced shapes for rigid bodies by configuring composite bodies and utilizing included source files to define precise collision boundaries in your Matter.js simulations.