What problem does it solve?
This Skill helps you set up and use Matter.js physics in Phaser 4 so your game can have believable rigid-body behavior, constraints, sensors, and collision rules without manual low-level wiring.
Core Features & Use Cases
- Configure Matter world behavior: gravity, bounds, sleeping, fixed timestep/stepping, and debug rendering for faster iteration.
- Create and control physics objects: Matter Sprites/Images/Game Objects with shapes, mass/friction/bounce, and runtime motion/forces.
- Implement gameplay-critical interactions: constraints (joints/springs/world constraints), composites (stacks/chains/soft bodies), collision filtering, sensors, and collision callbacks.
- Common scenarios: falling platforms with stable collisions, pointer dragging of objects, trigger zones that detect overlap without physical response, and tilemap-based physics bodies.
Quick Start
Use the physics-matter Skill to enable Matter physics, create a Matter sprite and a static rectangle, then configure gravity and run your scene so you can test rigid-body collisions and pointer interactions immediately.