Bevy-Eingabe und feste Bewegungsschritte
Trennt den Zeitpunkt des Einlesens einer Taste vom Simulationstick, der sie verbraucht. Erhält einmalige Aktionen und ruhige Bewegung bei null oder mehreren Updates pro Bild.
bevy-fixed-input-motion
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze dies, wenn schwankende Bildraten in Bevy Eingaben verschlucken, Sprünge wiederholen oder Bewegung ungleichmäßig machen.
Wobei hilft er dir?
- Trennt bildweise Eingabeerfassung von Befehlen für feste Simulationsschritte.
- Definiert die Eingabesammlung bei mehreren oder keinem Simulationsschritt pro Bild.
- Interpoliert sichtbare Bewegung ohne Änderung des maßgeblichen Zustands während Pause und Nachholen.
Das könntest du fragen
Unser Plattformer springt auf langsamen Rechnern gelegentlich zweimal. Übergib die Sprungflanke an die feste Simulation und prüfe Bilder ohne Tick sowie mit mehreren Ticks. Ein Druck ergibt einen akzeptierten Sprung; Kameraglättung bewegt die tatsächliche Figur während Pause nicht.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
Bevy — fixed input motion
Use when implementing Bevy input sampling, fixed simulation, movement or interpolation.
Version and project gate
Inspect Cargo.toml, Cargo.lock, Rust toolchain, exact Bevy release, plugin compatibility, feature selection, schedules, state definitions, asset roots and target backend. Read the matching migration guide before using newer examples. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Separate input edges sampled per render frame from commands consumed by fixed simulation. Define accumulation/consumption when several fixed ticks occur per frame or none occurs. Use the installed time APIs and interpolate presentation without altering authoritative state.
Deliver
A frame/tick input contract and a movement system with explicit pause and catch-up behavior. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Reading a just-pressed edge in several fixed ticks may execute an action repeatedly.
Acceptance scenario
Press and release between fixed ticks, induce several ticks in one frame, pause and resume without duplicating an action. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Talon. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
- https://bevy.org/learn/quick-start/getting-started/ecs/
- https://bevy.org/learn/migration-guides/0-18-to-0-19/
- https://bevy.org/learn/migration-guides/0-17-to-0-18/
Task-specific official references
Enthaltene Dateien 1
SKILL.md
