unity-physics
Skill by gamedev-skills
Sets up 3D and 2D physics in Unity 6.3 LTS, covering Rigidbody movement, colliders, triggers, layer collision rules, raycasts and joints. It is for Unity developers who need gameplay physics to behave correctly.
Install unity-physics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/unity/unity-physics ~/.claude/skills/unity-physicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/unity/unity-physics ~/.gemini/antigravity-cli/skills/unity-physicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through physics in Unity 6.3 LTS. It covers the 3D engine (Rigidbody, Collider, Physics) and the 2D engine (Rigidbody2D, Collider2D, Physics2D), which the source says never interact. It explains force-based movement, collision versus trigger callbacks, the layer collision matrix, raycasts and joints. The workflow asks the assistant to identify the engine first, to run physics code in FixedUpdate, and to move bodies through the physics API instead of the Transform.
The skill also lists common traps, such as triggers that never fire, ground rays that hit triggers or the player's own collider, and renamed Unity 6 members like velocity and linearVelocity. Verification uses either a Unity CLI state check or a PlayMode test. It is for Unity developers. Cross-engine tuning, tilemap colliders and NavMesh are handled by other skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Rigidbody movementForce-based movement in FixedUpdate with a speed clamp, using AddForce and linearVelocity.
- Collision and trigger setupChoose between solid collisions and triggers and handle OnCollisionEnter and OnTriggerEnter callbacks.
- Layer collision rulesPrune layer pairs with IgnoreLayerCollision and explains how to save changes in Project Settings.
- Raycast ground checksProvides ground check patterns that ignore triggers and exclude the player's own layer.
- Kinematic platformsMoves kinematic bodies with MovePosition so bodies resting on them ride along.
- 2D physics referenceCovers Rigidbody2D bodyType, ContactFilter2D, one-way platforms and kinematic Slide controllers.
- Troubleshooting gotchasLists common causes of missing callbacks, falling-through objects and fast objects passing walls.
- VerificationChecks results through Unity CLI state reads or a PlayMode test run in batch mode.
What you need
- Unity 6.3 LTS (6000.3)
- Unity Editor connected, for the optional Unity CLI verification path
Try asking
- Make my player move with AddForce in FixedUpdate and cap the speed
- Why does OnTriggerEnter never fire on my pickup?
- Set up a ground check raycast that ignores triggers and the player
Good to know
- Runtime IgnoreLayerCollision calls are not saved; lasting changes need the Project Settings matrix.
- The Unity CLI settings command does not cover the layer collision matrix.
- Unity CLI command names and flags change between releases.
- Verified against Unity 6000.3.29f1 on 2026-11-30.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/unity/unity-physics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB -
references/physics-2d.md5 KB -
references/raycasting-and-joints.md3 KB
Alternatives to unity-physics
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
unity-physics: common questions
Does this skill cover 2D physics as well?
Yes. The source covers Rigidbody2D, Collider2D and Physics2D in a separate section and points to a 2D reference file for movement and ground checks.
Which Unity version does it target?
It targets Unity 6.3 LTS (6000.3) and says it was last verified against Unity 6000.3.29f1.
Does it handle tilemap colliders or NavMesh?
No. The source assigns tilemap colliders to unity-tilemap-2d and NavMesh pathfinding to unity-navmesh.
How do I install unity-physics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is unity-physics free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is unity-physics safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to unity-physics?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
