What problem does it solve?
This skill helps you set up and control Matter.js rigid-body physics inside a Phaser 4 scene so your game can handle believable collisions, constraints, sensors, and debug visualization.
Core Features & Use Cases
- Scene + World setup: Configure gravity, bounds, stepping behavior, sleeping, and debug rendering through the Phaser Matter plugin.
- Physics objects and bodies: Create Matter sprites/images or inject Matter physics into existing game objects with shapes and body options.
- Advanced interactions: Use constraints (joints/springs), composites (stacks/chains/soft bodies/compound bodies), collision filtering & callbacks, pointer constraints (mouse dragging), and tilemap conversion with MatterTileBody.
Quick Start
Describe how you want your Matter world configured (gravity, bounds, debug), which objects should be dynamic vs static, and what interactions you need (constraints, sensors, collision categories), then implement it starting from GameScene.create and wiring the physics config to run with this.matter.