physics-tuning
Skill by gamedev-skills
Tunes game physics for stable, good-feeling motion. It covers fixed timestep, render interpolation, CCD against tunnelling, body tuning and collision layers. It is engine-neutral, with Godot checks.
Install physics-tuning
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/disciplines/physics-tuning ~/.claude/skills/physics-tuningRun 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/disciplines/physics-tuning ~/.gemini/antigravity-cli/skills/physics-tuningAntigravity 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 tuning of game physics. It covers the mismatch between the fixed-rate simulation and the variable-rate render loop. It also covers continuous collision detection (CCD) to stop fast bodies passing through walls, mass, gravity, damping, solver iterations, sleeping and collision layer matrices. Forces and collision reads belong in the fixed step, and rendering uses built-in interpolation where possible.
The skill includes Godot examples and two headless test scripts. One checks tunnelling with a fast body and a thin wall. The other compares a node's position at two fixed frame rates. It also gives a checklist for asking the user to judge feel. It is for game developers working on jitter, tunnelling, floaty motion or unstable physics. Engine API details are left to separate Godot, Unity and Roblox physics skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Fixed step simulationMoves forces, velocities and collision reads into the fixed physics step.
- Render interpolationTurns on the engine's built-in interpolation between physics ticks.
- CCD and speed capsChooses CCD modes and caps speed to stop tunnelling through walls.
- Body tuningAdjusts mass, linear damping, gravity scale, bounce and friction per body.
- Collision layer matrixDefines named layers and masks so the editor and code agree.
- Stack and joint stabilityAdvises on mass ratios, solver iterations and sleeping for stacks and joints.
- Tunnel testA headless Godot script that fires a fast body at a thin wall and exits 1 on failure.
- Frame-rate probeA headless Godot script that compares node positions at two fixed frame rates.
What you need
- Godot 4.7.2 for the headless tunnel and rate test scripts
- Unity 6.3 for the Unity-specific interpolation notes
Try asking
- Use physics-tuning to check if my fast bullets tunnel through thin walls
- Apply physics-tuning to fix jitter in my RigidBody2D player movement
- Help me set up a named collision layer matrix using physics-tuning
Good to know
- Engine API code for bodies and callbacks is in separate engine skills.
- Godot CCD_MODE_CAST_SHAPE did not stop tunnelling in one 2D test, so the ray mode is used.
- Godot solver_iterations only affects GodotPhysics3D; Jolt uses its own settings.
- Feel judgement is left to the user, so the checks need human play-testing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/disciplines/physics-tuning/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/timestep-and-ccd.md6 KB
Alternatives to physics-tuning
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
physics-tuning: common questions
Does physics-tuning stop fast objects passing through walls?
It recommends CCD, a speed cap or a ray or shape cast, and provides a headless Godot tunnel test to prove the fix. For Godot 2D, it says the ray CCD mode worked in its test and the shape mode did not.
Should I run physics code in _process or _physics_process?
The skill says to simulate in _physics_process or FixedUpdate using the fixed dt. Doing it in the render frame makes speed and collisions depend on frame rate.
Which engines does physics-tuning cover?
It is engine-neutral, with Godot examples and Unity notes for interpolation and collision detection modes. Engine API details are in separate Godot, Unity and Roblox physics skills.
How do I install physics-tuning?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is physics-tuning free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is physics-tuning safe to use?
It scores 94 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 physics-tuning?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
