physics-matter

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

Updated May 16, 2026
One-click install
npx skills add https://github.com/ckyeon/claude-code-settings --skill physics-matter-ckyeon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-matter
Source: https://github.com/ckyeon/claude-code-settings/tree/main/project-templates/phaser/.claude/skills/physics-matter
Command: npx skills add https://github.com/ckyeon/claude-code-settings --skill physics-matter-ckyeon

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the implementation of complex physics interactions within Phaser 4 games using the Matter.js physics engine.

Core Features & Use Cases

  • Rigid Bodies & Compound Bodies: Create dynamic and static physics bodies for characters, platforms, and other objects.
  • Constraints: Implement joints, springs, and pin joints for precise control of physics interactions.
  • Sensor: Add sensor bodies to detect collisions without physical reaction.
  • Use Case: Integrate into a game to allow characters to walk on platforms, collide with obstacles, and interact with physics-based objects like springs or doors.

Quick Start

Initialize Matter.js physics in your game scene and add a physics sprite.

Frequently Asked Questions about physics-matter

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

FAQPage Schema
How do I set up Matter.js physics for a Phaser 4 game scene?

Matter.js physics in Phaser 4 supports rigid bodies, compound bodies, constraints, and sensors. It enables characters to walk on platforms, collide with obstacles, and interact with objects like springs.

Can I use constraints and joints for physics interactions in Phaser 4?

Yes, you can implement constraints in Phaser 4 using Matter.js to create joints, springs, and pin joints. This allows for precise control over physics interactions like connecting rigid bodies or simulating mechanical links.

How do I detect collisions without triggering a physical reaction in Matter.js?

You can detect collisions without a physical reaction in Matter.js by adding sensor bodies to your game objects. Sensors register overlaps and collisions with other rigid bodies while bypassing physical displacement.

Does this physics Skill support both dynamic and static rigid bodies?

Yes, the Skill facilitates the creation of both dynamic and static rigid bodies in Phaser 4. Dynamic bodies react to forces and constraints, while static bodies serve as immovable platforms or obstacles for characters.

Do I need to install Matter.js separately to use rigid body physics in Phaser 4?

Yes, Matter.js is a required dependency alongside the Phaser 4 framework to utilize this Skill's rigid body physics features. You must have both libraries integrated into your game development environment.