physics-matter

Implement Matter.js rigid bodies, constraints, and collision filtering in Phaser 4.

Updated May 24, 2026
One-click install
npx skills add https://github.com/simon-tanna/pip-maze-v-2 --skill physics-matter-simon-tanna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-matter
Source: https://github.com/simon-tanna/pip-maze-v-2/tree/main/.claude/skills/physics-matter
Command: npx skills add https://github.com/simon-tanna/pip-maze-v-2 --skill physics-matter-simon-tanna

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive knowledge and tools for leveraging Matter.js physics within Phaser 4, enabling developers to implement robust physics simulations and interactions in their games.

Core Features & Use Cases

  • Rigid Bodies and Constraints: Learn to create and manipulate rigid bodies and constraints for complex physics interactions.
  • Composite Bodies: Combine multiple shapes into a single physics body for more sophisticated physics simulations.
  • Sensors and Collision Filtering: Implement sensors for non-physical triggering and control collision filtering between bodies.
  • Use Case: Use this Skill to add realistic physics to a platformer game, allowing for smooth jumping, sliding, and collision detection.

Quick Start

Use the physics-matter skill to set up a new game scene with Matter.js physics in Phaser 4.

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 in a Phaser 4 game scene?

You can set up Matter.js physics in Phaser 4 by configuring a new game scene to use the Matter physics engine, providing a foundation for rigid bodies, constraints, and collision detection in your game.

Can I combine multiple shapes into a single physics body in Phaser 4?

Yes, you can create composite bodies in Phaser 4 using Matter.js to combine multiple shapes into a single physics body, enabling more sophisticated and accurate physics simulations for complex game objects.

How do collision sensors and collision filtering work in Matter.js?

Sensors in Matter.js enable non-physical triggering for events without generating physical impact forces, while collision filtering controls which specific rigid bodies can interact, allowing precise management of game object collisions.

What's the best way to create complex physics constraints between rigid bodies?

The best way to create complex physics constraints between rigid bodies in Phaser 4 is by using Matter.js constraints, which allow you to define and manipulate physical relationships and interactions between rigid bodies for realistic simulations.

Does Phaser 4 support advanced physics simulations for platformer games?

Yes, Phaser 4 supports advanced physics simulations for platformer games through Matter.js integration, allowing developers to implement realistic physics interactions such as smooth jumping, sliding, and precise collision detection.