# fix-3d-physics-collisions

fix-3d-physics-collisions — a skill for Claude Code that diagnoses and repairs Unity 3D physics, including failed collision events and trigger issues. It runs when resolving OnCollisionEnter or OnTriggerEnter errors.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 673 installs · ★ 1306 repo stars
- Author: Unity-Technologies
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/fix-3d-physics-collisions/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/fix-3d-physics-collisions

## What it does

The skill diagnoses PhysX collision, trigger, and raycast problems by analyzing project settings and using the `unity-cli` for state verification. It references official Unity manual documentation based on the version found in `ProjectSettings/ProjectVersion.txt`. Always create a restore point before running corrections, as the skill performs targeted edits.

It avoids leaving verification code or logs in the user scripts and requires Unity `6000.3` or newer to function properly.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill fix-3d-physics-collisions -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/fix-3d-physics-collisions/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/fix-3d-physics-collisions/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill fix-3d-physics-collisions -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/fix-3d-physics-collisions/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill fix-3d-physics-collisions -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/fix-3d-physics-collisions/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Unity-Technologies/skills skills/fix-3d-physics-collisions
```

2. **Manually: put the files in place**
- File: `.github/skills/fix-3d-physics-collisions/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill fix-3d-physics-collisions -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Unity-Technologies/skills --path skills/fix-3d-physics-collisions
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/fix-3d-physics-collisions/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill fix-3d-physics-collisions -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/fix-3d-physics-collisions/SKILL.md

## When to use it
- resolve objects passing through colliders
- fix failed `OnTriggerEnter` event execution
- configure `MeshCollider` properties correctly
- debug inaccurate Raycast misses

## Example prompts
- Fix the `OnCollisionEnter` not firing in `PlayerController.cs`
- Why are raycasts missing the `MeshCollider` objects?

## Similar
- [unity-physics](https://affpapa.org/en/nevibecode/skills/unity-physics.md) — skill · 11200 installs
- [ue-physics-collision](https://affpapa.org/en/nevibecode/skills/ue-physics-collision.md) — skill · 1400 installs
- [physics-arcade](https://affpapa.org/en/nevibecode/skills/physics-arcade.md) — skill · 1100 installs
- [physics-tuning](https://affpapa.org/en/nevibecode/skills/physics-tuning.md) — skill · 13300 installs
- [roblox-physics](https://affpapa.org/en/nevibecode/skills/el4cteo-roblox-physics.md) — skill · 1200 installs
- [godot-physics-3d](https://affpapa.org/en/nevibecode/skills/godot-physics-3d.md) — skill · 495 installs

From the same set: [unity-technologies/skills](https://affpapa.org/en/nevibecode/by/unity-technologies/skills.md) — 38 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
