What problem does it solve?
It solves the problem of setting up Arcade Physics interactions in Phaser 4 by providing a practical, end-to-end guide for configuring physics, moving bodies, and handling collisions and overlaps reliably.
Core Features & Use Cases
- Arcade Physics world setup: Configure gravity, world bounds, timestep, time scaling, and optional debug rendering.
- Dynamic and static bodies: Create physics-enabled sprites/images, understand body properties, and build immovable static platforms.
- Collide, overlap, and events: Use persistent colliders and overlaps for continuous checking, plus collision-category filtering to control what can hit what.
- Groups and sensors: Use physics groups for managing many bodies and create fast trigger-like overlap behaviors.
Use Case: Create a platformer scene where a player sprite falls under gravity, bounces off the ground, collides with moving hazards, and overlaps pickups to trigger collection logic.
Quick Start
Enable Arcade Physics in your Phaser game config, create a dynamic sprite for the player, add static bodies for platforms, then register persistent collider/overlap handlers between the relevant objects.