Game Physics Tuning
/physics-tuning
Stable, good-feeling physics: fixed timestep with interpolation, mass and drag, CCD against tunneling, jitter fixes and collision layers.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Godot 4.7.2 上通过 28/28 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Tune game physics for stable, good-feeling motion — fixed vs variable timestep, render interpolation, mass/gravity/drag, continuous collision detection (CCD) to stop tunneling, fixing jitter, and collision layers/masks. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 184b72be0288,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 力和速度只在 _physics_process / FixedUpdate 里改,用固定 dt / Forces and velocity change only in the fixed step, with its dt
- 画面在两次物理帧之间插值;瞬移后调用 reset,不拖影 / Visuals interpolate between ticks, and a reset after a teleport stops the smear
- speed / physics_hz 小于最薄的墙,否则开 CCD 或限速 / speed / physics_hz is below the thinnest wall, or CCD or a speed cap is on
- 质量只影响碰撞,下落快慢用 gravity_scale 和 damp 调 / Mass only affects collisions; fall speed is tuned with gravity_scale and damp
- 碰撞层用命名常量,双方的 layer 和 mask 都检查过 / Layers use named constants, and both sides' layer and mask are checked
中文指南
这个 skill 做什么
让游戏物理又稳又顺手:固定步长和渲染插值、质量/阻尼/重力倍率、用连续碰撞检测(CCD)防止穿墙、消除抖动、碰撞层和遮罩。思路与引擎无关,示例同时给出 Godot 和 Unity 的写法。
什么时候用
- 物体抖动、高速子弹穿墙、堆叠的箱子炸开
- 手感发飘、发黏或有延迟
- 不确定哪些代码该放物理帧,哪些放渲染帧
怎么装
下载本页的 ZIP,把 physics-tuning/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
gameskill/examples/ 是一个 Godot 4.7 工程:两颗同速子弹(每帧 40 像素)射向 4 像素厚的墙,红色关掉 CCD 直接穿过去,绿色开 CCD_MODE_CAST_RAY 被挡住。
我们怎么测的
在 Godot 4.7.2 无头模式、60 Hz 下跑 16 项检查:无 CCD 穿墙、有 CCD 被挡;限速保持方向;质量差 10 倍下落一样快;gravity_scale 1.5 正好快 1.5 倍;阻尼让物体更早停下,且每帧按 v × (1 − damp / 60) 衰减(和 skill 里的说明一致);拾取物只响应玩家层、忽略敌人;插值在 alpha 0.5 时正好在两帧中间,瞬移后 reset 不拖影。结果在 gameskill/test-report.json。
搭配
godot-physics:Godot 的具体物理节点和回调godot-2d-movement、input-systems:角色移动和操作手感game-feel:物理调稳之后再加反馈
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/physics-tuning/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/physics-tuning.zip -o /tmp/gameskill-physics-tuning.zip
unzip -oq /tmp/gameskill-physics-tuning.zip -d .claude/skills
rm /tmp/gameskill-physics-tuning.zip包含内容
- Worked steps: Fixed timestep for simulation, render interpolation for smoothness; Stop tunneling: CCD + a speed cap; Body tuning: mass, drag, gravity scale, material; Collision layers and masks
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
适合
- Requests about physics feel, jitter, tunneling, fixed timestep or FixedUpdate
试试这条提示词
My fast projectiles pass through walls and the player jitters. Fix the physics.关于这个 Skill
Tune game physics for stable, good-feeling motion — fixed vs variable timestep, render interpolation, mass/gravity/drag, continuous collision detection (CCD) to stop tunneling, fixing jitter, and collision layers/masks. Engine-neutral. Use when the user mentions physics feel, jitter, tunneling, fixed timestep, FixedUpdate, CCD, bouncing/unstable physics, or collision layers.
From the physics-tuning SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Fixed timestep for simulation, render interpolation for smoothness
- Stop tunneling: CCD + a speed cap
- Body tuning: mass, drag, gravity scale, material
- Collision layers and masks (who collides with whom)
常见问题
游戏打磨流程 Game Polish Workflow
让 AI 把游戏真正改好的可复用流程:10 步打磨循环、中英双语提示词、AI 做游戏常见问题排障清单,以及试玩和发布检查表。
- 10 步打磨循环,每步有完成标准
- 14 条中文 + 14 条英文提示词
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Godot Physics
Use Godot 4.7 physics bodies and detection in 2D and 3D: RigidBody, StaticBody, Area, and CharacterBody; collision layers vs masks; contact/overlap signals; and raycasts (RayCast nodes and direct space-state queries).
Game Input Systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
Game AI: FSM, Behavior Trees & Pathfinding
NPC and enemy decision-making with state machines, behavior trees, steering and A* pathfinding, paired with your engine's navigation API.
2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 43 个Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
Create Game Assets
Plan, generate, source, normalize, and validate cohesive visual game assets.
相似 skills
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Co-op Anything
Point your coding agent at a single-player game and make it co-op: an MCP server, 13 agent skills and a playbook to research, reverse engineer, build, bot-test and ship co-op mods with Steam relay networking.
Novel to Game: Build
Build a risk-matched whitebox or the approved production game for its target runtime.
Shader Art Coding (GLSL / Shadertoy)
A tested library of 186 GLSL building blocks plus a workflow for procedural fragment shaders: SDF raymarching, 2D distance fields, noise and fBm, terrain, water, clouds, lighting and tonemapping. A Python bundler inlines only the functions a shader uses, and a checker lints it for the mistakes that break WebGL. Good for game backdrops, title screens, portals, pickups and full-screen effects.