physics-arcade

Configure Arcade Physics in Phaser 4 projects including collision handling and body management.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/quochung-cyou/MissionSim --skill physics-arcade-quochung-cyou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-arcade
Source: https://github.com/quochung-cyou/MissionSim/tree/main/skills/physics-arcade
Command: npx skills add https://github.com/quochung-cyou/MissionSim --skill physics-arcade-quochung-cyou

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill unit simplifies the setup and integration of Arcade Physics into Phaser 4 projects, providing comprehensive guidelines and examples to optimize game mechanics and collision handling.

Core Features & Use Cases

  • Physics Configuration: Detailed instructions on enabling physics and setting up essential properties like gravity and collision detection.
  • Body Properties: Management of dynamic and static bodies, including velocity, acceleration, and collision categories.
  • Group Management: Creating and managing dynamic and static groups for efficient object organization and collision handling.
  • World Boundaries: Defining world boundaries and handling world edge collisions.
  • Use Case: If you're developing a platformer or a game involving complex physics interactions in Phaser 4, this Skill helps you implement and customize the physics behavior for your game.

Quick Start

Enable Arcade Physics in your Phaser game and use the following code to create a player and platforms:

class GameScene extends Phaser.Scene {
    create() {
        // Add physics body to the player
        this.player = this.physics.add.sprite(100, 300, 'player');
        this.player.setCollideWorldBounds(true);
        this.player.setBounce(0.2);

        // Create static platforms
        this.platforms = this.physics.add.staticGroup();
        this.platforms.create(400, 568, 'ground').setScale(2).refreshBody();
    }
}

Frequently Asked Questions about physics-arcade

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

FAQPage Schema
How do I set up Arcade Physics in a Phaser 4 game?

To set up Arcade Physics in Phaser 4, you enable the physics system in your scene configuration and add sprites with physics bodies. You can then configure properties like gravity and collision detection.

How do I handle collisions between dynamic and static groups in Phaser 4?

You can handle collisions in Phaser 4 by creating dynamic and static groups for object organization. Use the physics collider methods to define interactions and manage collision categories between these groups.

Can I use Arcade Physics for a platformer game in Phaser 4?

Yes, Arcade Physics is suitable for a platformer game in Phaser 4. It allows you to implement and customize physics behaviors, including managing velocity, acceleration, and world edge collisions for gameplay mechanics.

How do I configure world boundaries and object bouncing in Phaser 4?

You configure world boundaries by setting world edge collision properties on your physics bodies. To make objects bounce, you can set the bounce property on sprites and enable world bounds collision.

What are the limitations of using Arcade Physics for complex physics interactions?

Arcade Physics provides simplified body configurations and basic collision handling for optimizing gameplay. It is designed for standard game mechanics rather than complex, realistic physics simulations requiring advanced calculations.