physics-arcade

Configure Arcade Physics in Phaser 4 projects with bodies, velocity, gravity, and collisions.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill physics-arcade-arnaudruffin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-arcade
Source: https://github.com/arnaudruffin/dvx-phaser-game/tree/main/.agents/skills/physics-arcade
Command: npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill physics-arcade-arnaudruffin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Arcade Physics in Phaser 4 can be challenging to configure and debug, especially when enabling physics, creating bodies, and implementing velocity, gravity, collisions, world bounds, and per-body properties.

Core Features & Use Cases

  • Simplified setup: enable Arcade Physics in GameConfig and create dynamic/static bodies with velocity, gravity, and collisions.
  • Flexible interactions: manage collide and overlap between game objects and handle world bounds and body properties.
  • Real-world scenario: build a platformer where a player runs, jumps, collides with platforms, and collects items using arcades physics.

Quick Start

Enable Arcade Physics in the game config, then create a dynamic player with gravity and platform collisions to observe physics in action.

Frequently Asked Questions about physics-arcade

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

FAQPage Schema
How do I enable Arcade Physics in Phaser 4?

You enable Arcade Physics in Phaser 4 by configuring the physics property within your GameConfig object. This initializes the arcade physics engine, allowing you to create dynamic and static bodies across your game world.

How do I handle collisions and overlap between sprites in Phaser 4?

You handle collisions and overlap in Phaser 4 by managing interactions between physics-enabled game objects. This involves using the physics system to detect overlaps and enforce collide callbacks between dynamic and static sprites.

How do I apply velocity and gravity to a dynamic physics body?

You apply velocity and gravity to a dynamic body by modifying its physics body properties after creation. This allows sprites to move automatically and fall realistically within the arcade physics world bounds.

Can I build a platformer with Arcade Physics in Phaser 4?

Yes, you can build a platformer using Arcade Physics in Phaser 4. You create a dynamic player with gravity, configure platform collisions, and handle item collection to observe the physics engine in action.

How do I enforce world bounds for game objects in Phaser 4?

You enforce world bounds in Phaser 4 by configuring the physics body properties of your game objects. This prevents dynamic and static objects from moving outside the defined arcade physics world limits.