Skip to content
Back to skills

Phaserjs Build Physics

ASecurity

Implement explicitly selected Phaser Arcade or Matter physics with correct body ownership, collision filtering and stepping.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
businessgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add TimothyMeadows/Hephaera --skill phaserjs-build-physics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Phaserjs Build Physics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Phaserjs Build Physics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timothymeadows-phaserjs-build-physics/badge)](https://www.skillsdirectory.com/skills/timothymeadows-phaserjs-build-physics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: phaserjs-build-physics
description: Implement explicitly selected Phaser Arcade or Matter physics with correct body ownership, collision filtering and stepping.
engines: [PHASERJS]
---

# Build Phaser Physics

## When to use

Build Phaser movement/collision, triggers, constraints or physics-aware gameplay adapters.

## Engine and dependencies

Before edits or tool launches, run `resolve-engine.sh` and `resolve-skill.sh phaserjs-build-physics`; require compatibility and honor task override scope. Read the host revision and require an explicit Arcade or Matter choice. Preserve an existing choice unless migration is requested. Do not add middleware or automatically switch solvers when a requested shape is unsupported.

## Workflow

1. Use Arcade for its supported axis-aligned rectangles/circles and lightweight collision model; use Matter for selected rigid-body, rotated/compound shape or constraint needs. `this.physics` and `this.matter` are different plugins; bodies do not collide across their separate worlds.
2. Configure world units, gravity, solver timing, bounds and pause behavior. Choose one stepping owner and a bounded resume policy. Verify the installed plugin's time-scale semantics rather than copying another subsystem's multiplier.
3. For Arcade, declare body sizes/offsets, static versus dynamic groups, `collider` versus `overlap`, and process filters. Refresh static bodies after supported transform changes. For Matter, declare fixtures, collision categories/masks, sensors, constraints and rotation policy through the version's APIs.
4. Physics owns movement of dynamic bodies; avoid competing tweens/direct position writes. Teleport/reset must synchronize body and display state. Navigation/AI submits movement intent to this adapter rather than bypassing collision.
5. Translate contacts into stable entity IDs and bounded simulation events. Protect triggers from duplicate processing, despawn during callbacks and invalid state transitions. Save validated gameplay state rather than plugin object graphs; fixed stepping alone does not guarantee deterministic cross-device replay.
6. Remove owned colliders, constraints and world listeners on shutdown; pooled actors must reset velocity, contacts, flags and body activation before reuse.

## Output and verification

Deliver solver selection, movement/trigger adapters and a runnable collision fixture. Verify grounding, sensors, fast movement, masks, teleports, pooled reuse, pause/resume and restart at varied frame rates. Record solver limits and observed misses. Mock collision callbacks cannot certify physics. Consult the [Arcade contract](https://docs.phaser.io/phaser/concepts/physics/arcade) and selected version's Matter reference.

Files in this skill

  • SKILL.md2.7 KB
  • agents/openai.yaml268 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.