This skill provides expertise for the physics-2d module.
Location: cocos/physics-2d
Language: typescript
Files: 10 files
Domain Expertise
Patterns
2d-physics
component-based
Key Concepts
RigidBody2D
Collider2D
PhysicsWorld2D
Key APIs
Classes
RigidBody2D
Collider2D
PhysicsWorld2D
Functions
raycast2D()
testPoint()
Public API
RigidBody2D
Collider2D
PhysicsWorld2D
Common Patterns
2d-physics: Common pattern in this module
component-based: Common pattern in this module
Usage Examples
// Pattern usage examples would go here
// Analyze actual code for specific implementations
Code Examples
Basic Usage
# Import from physics-2d
import { RigidBody2D, Collider2D } from 'physics-2d';
Usage Guide
When to Use This Skill
Working with physics-2d module
Implementing features related to this domain
Refactoring code in this module
Debugging issues in this area
Best Practices
Understand the domain: Review the module's purpose and patterns
Follow conventions: Use the naming and structure patterns found in the codebase
Check dependencies: Be aware of module dependencies
Test changes: Ensure changes don't break existing functionality
Common Tasks
Adding new functionality to the module
Refactoring existing code
Fixing bugs
Adding tests
1---2name: physics-2d3description: Physics 2d4---56# Physics 2d78## Overview910This skill provides expertise for the **physics-2d** module.1112**Location**: `cocos/physics-2d`1314**Language**: typescript1516**Files**: 10 files1718## Domain Expertise1920### Patterns21- 2d-physics22- component-based2324### Key Concepts25- `RigidBody2D`26- `Collider2D`27- `PhysicsWorld2D`2829## Key APIs3031### Classes32- `RigidBody2D`33- `Collider2D`34- `PhysicsWorld2D`3536### Functions37- `raycast2D()`38- `testPoint()`3940### Public API41- `RigidBody2D`42- `Collider2D`43- `PhysicsWorld2D`4445## Common Patterns4647- **2d-physics**: Common pattern in this module48- **component-based**: Common pattern in this module4950### Usage Examples5152```typescript53// Pattern usage examples would go here54// Analyze actual code for specific implementations55```5657## Code Examples5859### Basic Usage6061```typescript62# Import from physics-2d6364import { RigidBody2D, Collider2D } from 'physics-2d';65```66## Usage Guide6768### When to Use This Skill6970- Working with physics-2d module71- Implementing features related to this domain72- Refactoring code in this module73- Debugging issues in this area7475### Best Practices76771. **Understand the domain**: Review the module's purpose and patterns782. **Follow conventions**: Use the naming and structure patterns found in the codebase793. **Check dependencies**: Be aware of module dependencies804. **Test changes**: Ensure changes don't break existing functionality8182### Common Tasks8384- Adding new functionality to the module85- Refactoring existing code86- Fixing bugs87- Adding tests88
Run npx skillmds@latest add kongshan001/physics-2d in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Physics 2d It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
kongshan001 (@kongshan001) published this skill. Their other Agent Skills are listed on their SkillMD profile.