[PR #6709] [MERGED] The hands' sway follows vanilla's yaw again #7045

Closed
opened 2026-11-03 06:32:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6709
Author: @HrafnaValkyrja
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/first-person-parity


📝 Commits (4)

  • 602923d Hand sway: tick follows vanilla's unwrapped yaw; the wrap moves to a separate method
  • 01fa1b3 Merge remote-tracking branch 'origin/main' into fix/first-person-parity
  • 6470651 Merge remote-tracking branch 'origin/main' into fix/first-person-parity
  • cb77e8e Merge remote-tracking branch 'origin/main' into fix/first-person-parity

📊 Changes

2 files changed (+14 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/first_person.rs (+13 -6)
📝 crates/horizon-client/src/game/hand.rs (+1 -1)

📄 Description

🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself.

What and why

first_person failed on main with 2,973 differing cases since 6aec3da41 (#6451), all in the y-bob field. That commit made HandSway::tick wrap its yaw difference, to fix the hands shaking while a ridden boat turns. Vanilla's yaw isn't wrapped, so a turn over 180° in one tick eased differently.

HandSway::tick is vanilla again. A new tick_wrapped, called from game/hand.rs, unwraps the game's wrapped yaw by its short steps first, so the boat fix stays.

Fixes #6708

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

tools/test_first_person_parity.py compares against vanilla through VanillaFirstPersonOracle.

Numbers

differing cases
main 2,973
this PR 0, of 4,199

The boat test from #6451 and the existing boat-turn hands test pass.

What wasn't compared

Feel of the hands in a real game; this is the harness and tests only.

Proved by script against the real 26.3 server; no human played this change.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on Valhalla, against origin/main at 09a669a6c, 10 min 24 s)

Check Result
Scope ✅ 2 files, +14 −7
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 598 passed (35 s)
rustfmt ✅ (9 s)
Rust ⚠️ 1.98.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with rustup update
clippy ✅ (2 min 7 s)
tests: horizon-client, horizon-client-lib ✅ 1929 passed (7 min 21 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 304 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, armor_stand_frost, arrow, arrow_wind_charge, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes and 292 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code

https://claude.ai/code/session_018zuDTsnyHkP28bzn3u7S3m


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6709 **Author:** [@HrafnaValkyrja](https://github.com/HrafnaValkyrja) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/first-person-parity` --- ### 📝 Commits (4) - [`602923d`](https://github.com/horizon-rust/horizon/commit/602923d8a779b13929ea19b12b7a5e335d369bda) Hand sway: tick follows vanilla's unwrapped yaw; the wrap moves to a separate method - [`01fa1b3`](https://github.com/horizon-rust/horizon/commit/01fa1b3e0266ea3e5b0f8e88cac4004df3cc37e8) Merge remote-tracking branch 'origin/main' into fix/first-person-parity - [`6470651`](https://github.com/horizon-rust/horizon/commit/6470651ffe392a274d1565852c95500672255535) Merge remote-tracking branch 'origin/main' into fix/first-person-parity - [`cb77e8e`](https://github.com/horizon-rust/horizon/commit/cb77e8e745c3d4dab579e7ae114c09ee28e4e671) Merge remote-tracking branch 'origin/main' into fix/first-person-parity ### 📊 Changes **2 files changed** (+14 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/first_person.rs` (+13 -6) 📝 `crates/horizon-client/src/game/hand.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. ## What and why `first_person` failed on main with 2,973 differing cases since 6aec3da41 (#6451), all in the y-bob field. That commit made `HandSway::tick` wrap its yaw difference, to fix the hands shaking while a ridden boat turns. Vanilla's yaw isn't wrapped, so a turn over 180° in one tick eased differently. `HandSway::tick` is vanilla again. A new `tick_wrapped`, called from `game/hand.rs`, unwraps the game's wrapped yaw by its short steps first, so the boat fix stays. Fixes #6708 ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `tools/test_first_person_parity.py` compares against vanilla through `VanillaFirstPersonOracle`. ## Numbers | | differing cases | |---|---| | main | 2,973 | | this PR | 0, of 4,199 | The boat test from #6451 and the existing boat-turn hands test pass. ## What wasn't compared Feel of the hands in a real game; this is the harness and tests only. Proved by script against the real 26.3 server; no human played this change. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Valhalla, against origin/main at 09a669a6c, 10 min 24 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +14 −7 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 598 passed (35 s) | | rustfmt | ✅ (9 s) | | Rust | ⚠️ 1.98.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | clippy | ✅ (2 min 7 s) | | tests: horizon-client, horizon-client-lib | ✅ 1929 passed (7 min 21 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 304 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, armor_stand_frost, arrow, arrow_wind_charge, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes and 292 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018zuDTsnyHkP28bzn3u7S3m --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:32:39 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7045
No description provided.