# Physics

> Physics

- Skill: `kongshan001/physics` (Agent Skill)
- Install (CLI): `npx skillmds@latest add kongshan001/physics`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kongshan001/physics/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: kongshan001 (https://skillmd.com/u/kongshan001)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/kongshan001/physics

---


# Physics

## Overview

This skill provides expertise for the **physics** module.

**Location**: `cocos/physics`

**Language**: typescript

**Files**: 10 files

## Domain Expertise

### Patterns
- physics-integration
- component-based

### Key Concepts
- `RigidBody`
- `Collider`
- `PhysicsWorld`
- `Joint`

## Key APIs

### Classes
- `RigidBody`
- `Collider`
- `PhysicsWorld`
- `Joint`

### Functions
- `raycast()`
- `sweepTest()`
- `overlapTest()`

### Public API
- `RigidBody`
- `Collider`
- `PhysicsWorld`

## Common Patterns

- **physics-integration**: Common pattern in this module
- **component-based**: Common pattern in this module

### Usage Examples

```typescript
// Pattern usage examples would go here
// Analyze actual code for specific implementations
```

## Code Examples

### Basic Usage

```typescript
# Import from physics

import { RigidBody, Collider } from 'physics';
```
## Usage Guide

### When to Use This Skill

- Working with physics module
- Implementing features related to this domain
- Refactoring code in this module
- Debugging issues in this area

### Best Practices

1. **Understand the domain**: Review the module's purpose and patterns
2. **Follow conventions**: Use the naming and structure patterns found in the codebase
3. **Check dependencies**: Be aware of module dependencies
4. **Test changes**: Ensure changes don't break existing functionality

### Common Tasks

- Adding new functionality to the module
- Refactoring existing code
- Fixing bugs
- Adding tests


