[PR #2007] [MERGED] Fix walking arm animation while riding boats #3930

Closed
opened 2026-11-03 04:13:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2007
Author: @rdbtCVS
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/1962-passenger-animation


📝 Commits (1)

  • 4cc134d Fix passenger walk animation in shared render state

📊 Changes

4 files changed (+50 additions, -5 deletions)

View changed files

📝 crates/horizon-client/examples/probe/entity_anim_fixture.rs (+20 -2)
📝 crates/horizon-client/src/mobs/anim.rs (+4 -3)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaEntityAnimOracle.java (+13 -0)
📝 tools/test_entity_model_parity.py (+13 -0)

📄 Description

🤖 Opened by rdbt's AI agent (Codex, GPT-6.1 Sol), not by rdbt himself.

What and why

Fixes #1962.

Riding a moving boat in F5 left the player's walking arm swing active even though the legs were seated. The shared living render-state extraction now zeros walk position and speed for passengers, matching vanilla. This covers the local player in both singleplayer paths and remote riders through the same renderer; movement and vehicle simulation are untouched.

Extended entity_model parity with 12 cases using a live walk clock: mounted/on foot, alive/dead, and partial ticks 0, 0.5, and 1. These compare extracted walk values and the resulting humanoid poses against vanilla's WalkAnimationState and model.

Vanilla reference

Read the pinned 26.3 client bytecode with javap -c -p:

  • LivingEntityRenderer.extractRenderState: walk position and speed are zero unless alive and not a passenger.
  • LivingEntity.calculateEntityAnimation and WalkAnimationState.stop: passenger/dead walk clocks stop.
  • HumanoidModel.setupAnim: the passenger pose adjusts the arms after their walking rotation and fixes the seated legs.

Harness: tools/test_entity_model_parity.py, extended with render-state extraction cases. Parity execution is left to CI as requested.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on archlinux, against upstream/main at 74b08e631, 6 min 42 s)

Check Result
Scope ✅ 4 files, +50 −5
Cargo.lock ✅ unchanged
Public tree ✅ (2 s)
Python tests ✅ 303 passed (30 s)
rustfmt ✅ (6 s)
clippy ✅ (1 min 17 s)
tests: horizon-client ✅ 1265 passed (4 min 16 s)
doc tests ✅ 0 passed (6 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 73 affected, to run in CI (--quick): arrow, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, breaking_model, cauldron, chat_screen, command_exec, command_parse and 61 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Additional validation: the Java animation oracle compiles against the pinned 26.3 client; the regression generator produces all 12 new cases. pr_ready.py --quick --base upstream/main exited 0.

Screenshots

No in-game screenshots or manual game runs captured. The shared render path was checked for local F5 models (server-thread and in-frame) and remote passengers; the new vanilla parity cases are ready for CI.

Maintainer edits enabled.

🤖 Generated with Codex (GPT-6.1 Sol).


🔄 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/2007 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/1962-passenger-animation` --- ### 📝 Commits (1) - [`4cc134d`](https://github.com/horizon-rust/horizon/commit/4cc134d08a52c94b88bcf4dbbdfee70b14ddde2f) Fix passenger walk animation in shared render state ### 📊 Changes **4 files changed** (+50 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/entity_anim_fixture.rs` (+20 -2) 📝 `crates/horizon-client/src/mobs/anim.rs` (+4 -3) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaEntityAnimOracle.java` (+13 -0) 📝 `tools/test_entity_model_parity.py` (+13 -0) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (Codex, GPT-6.1 Sol), not by rdbt himself. ## What and why Fixes #1962. Riding a moving boat in F5 left the player's walking arm swing active even though the legs were seated. The shared living render-state extraction now zeros walk position and speed for passengers, matching vanilla. This covers the local player in both singleplayer paths and remote riders through the same renderer; movement and vehicle simulation are untouched. Extended `entity_model` parity with 12 cases using a live walk clock: mounted/on foot, alive/dead, and partial ticks 0, 0.5, and 1. These compare extracted walk values and the resulting humanoid poses against vanilla's `WalkAnimationState` and model. ## Vanilla reference Read the pinned 26.3 client bytecode with `javap -c -p`: - `LivingEntityRenderer.extractRenderState`: walk position and speed are zero unless alive and not a passenger. - `LivingEntity.calculateEntityAnimation` and `WalkAnimationState.stop`: passenger/dead walk clocks stop. - `HumanoidModel.setupAnim`: the passenger pose adjusts the arms after their walking rotation and fixes the seated legs. Harness: `tools/test_entity_model_parity.py`, extended with render-state extraction cases. Parity execution is left to CI as requested. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on archlinux, against upstream/main at 74b08e631, 6 min 42 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +50 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (2 s) | | Python tests | ✅ 303 passed (30 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 min 17 s) | | tests: horizon-client | ✅ 1265 passed (4 min 16 s) | | doc tests | ✅ 0 passed (6 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 73 affected, to run in CI (--quick): arrow, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, breaking_model, cauldron, chat_screen, command_exec, command_parse and 61 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Additional validation: the Java animation oracle compiles against the pinned 26.3 client; the regression generator produces all 12 new cases. `pr_ready.py --quick --base upstream/main` exited 0. ## Screenshots No in-game screenshots or manual game runs captured. The shared render path was checked for local F5 models (server-thread and in-frame) and remote passengers; the new vanilla parity cases are ready for CI. Maintainer edits enabled. 🤖 Generated with [Codex](https://openai.com/codex/) (GPT-6.1 Sol). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:21 +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#3930
No description provided.