界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

rust-bevy-fixed-step-physics

rust-bevy-fixed-step-physics

【设计与创意】Design and review Bevy fixed-step 2D physics loops with velocity components, deterministic movement, collision prediction, interpolation, impulses, and tweened presentation. Use when movement depends on frame rate, collision misses appear at high speed, physics and animation are tangled, or Bevy gameplay needs stable simulation steps.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: rust-bevy-fixed-step-physics description: Design and review Bevy fixed-step 2D physics loops with velocity components, deterministic movement, collision prediction, interpolation, impulses, and tweened presentation. Use when movement depends on frame rate, collision misses appear at high speed, physics and animation are tangled, or Bevy gameplay needs stable simulation steps. license: MIT compatibility: Codex, Claude Code, and other Agent Skills-compatible clients. metadata: version: "0.1.0" displayName: Rust Bevy Fixed Step Physics category: Rust tags: rust,bevy,gamedev,physics,simulation

Rust Bevy Fixed Step Physics

Use this skill to separate deterministic simulation from frame-rate-dependent presentation in Bevy games.

Core Workflow

  1. Identify which movement must be deterministic and collision-safe.
  2. Sample input in update systems, then apply movement in fixed-step systems.
  3. Store velocity, acceleration, and intent explicitly in components/resources.
  4. Predict or sweep movement before committing positions.
  5. Emit physics/collision events; keep animation and particles as presentation.
  6. Interpolate or tween visuals when fixed simulation looks choppy.

Read Next

TaskLoad
Fix frame-rate-dependent movementguidelines.md, workflows/stabilize-physics.md
Add fixed movement and collision predictionreferences/fixed-step-patterns.md
Separate animation from physicsreferences/fixed-step-patterns.md

Source Notes

Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapters 7 through 9 on movement, collision, and smoothing. Examples are original skeletons.

我的收藏