[PR #7219] [MERGED] Third person: a spyglass in use raises the arm #7417

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

📋 Pull Request Information

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

Base: main ← Head: fix/spyglass-arm-pose


📝 Commits (2)

  • c004afd Third person: a spyglass in use raises the arm
  • b814de1 Merge main: its ledger rows on the held-to-eye drawing stand

📊 Changes

1 file changed (+47 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/mobs/anim.rs (+47 -0)

📄 Description

🤖 Opened by 4404c's AI agent (Claude Code, Opus 5.5), not by 4404c personally.

What and why

In third person, a player looking through a spyglass kept the arm down at the side, in the pose of an item being held, while the spyglass itself floated at the eye. 4404c noticed it playing, on Nightly 2026-11-01 · c9d474d. mobs/anim.rs's ArmPose had no spyglass pose.

This adds it, for either hand. The arm rises with the head:

  • xRot = clamp(head.xRot - 1.9198622 - (crouching ? 0.2617994 : 0), -2.4, 3.3)
  • yRot = head.yRot ∓ 0.2617994 (minus for the right arm, plus for the left)

No issue was opened or claimed for this; the search for "spyglass" finds no open issue or pull request on it.

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

AvatarRenderer.getArmPose, HumanoidModel.poseRightArm, HumanoidModel.poseLeftArm, read with tools/rea_vanilla.py; the constants SPYGLASS_ARM_ROT_X and SPYGLASS_ARM_ROT_Y with javap -constants.

Tests: a unit test of the pose in both hands (pitch, yaw, crouching, the limit looking up). By eye, in a scratch single player world through horizon-ctl, third person from the front, main hand: the arm comes up to the spyglass with this build, and stays down on c9d474d. Not seen on screen: the off hand, crouching, or another player on a server. No vanilla harness compares this pose.

Other projects' code

none

Self-check

Run on Windows, before #6750 merged; that pull request is what fixes the Python failure below (test_capture_lifecycle), which this change doesn't touch. Since then main was merged in, keeping its ledger rows over this branch's (the same correction): the branch is now anim.rs only, +47, and the anim tests were run again and pass.

pr_ready (tools/pr_ready.py --quick --base upstream/main on naza, against upstream/main at e12185820, 6 min 45 s)

Check Result
Scope ✅ 2 files, +49 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 602 run, FAILED (errors=1, skipped=2) (1 min 39 s)
rustfmt ✅ (9 s)
clippy ✅ (2 min 24 s)
tests: horizon-client-lib ✅ 1374 passed (2 min 21 s)
doc tests ✅ 0 passed (6 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched

The remaining rows of the block (launcher tests, parity) were not kept: the launcher is untouched and this was a --quick run, so CI's parity job picks any affected harnesses.

Screenshots

Before and after: in a comment below.

🤖 Generated with Claude Code


🔄 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/7219 **Author:** [@4404c](https://github.com/4404c) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/spyglass-arm-pose` --- ### 📝 Commits (2) - [`c004afd`](https://github.com/horizon-rust/horizon/commit/c004afd19f3db8c329418d1638f6b1b21a511a4f) Third person: a spyglass in use raises the arm - [`b814de1`](https://github.com/horizon-rust/horizon/commit/b814de111848927361dee34170c548c8f9246803) Merge main: its ledger rows on the held-to-eye drawing stand ### 📊 Changes **1 file changed** (+47 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/anim.rs` (+47 -0) </details> ### 📄 Description > 🤖 Opened by 4404c's AI agent (Claude Code, Opus 5.5), not by 4404c personally. ## What and why In third person, a player looking through a spyglass kept the arm down at the side, in the pose of an item being held, while the spyglass itself floated at the eye. 4404c noticed it playing, on Nightly 2026-11-01 · c9d474d. `mobs/anim.rs`'s `ArmPose` had no spyglass pose. This adds it, for either hand. The arm rises with the head: - `xRot = clamp(head.xRot - 1.9198622 - (crouching ? 0.2617994 : 0), -2.4, 3.3)` - `yRot = head.yRot ∓ 0.2617994` (minus for the right arm, plus for the left) No issue was opened or claimed for this; the search for "spyglass" finds no open issue or pull request on it. ## 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 `AvatarRenderer.getArmPose`, `HumanoidModel.poseRightArm`, `HumanoidModel.poseLeftArm`, read with `tools/rea_vanilla.py`; the constants `SPYGLASS_ARM_ROT_X` and `SPYGLASS_ARM_ROT_Y` with `javap -constants`. Tests: a unit test of the pose in both hands (pitch, yaw, crouching, the limit looking up). By eye, in a scratch single player world through `horizon-ctl`, third person from the front, main hand: the arm comes up to the spyglass with this build, and stays down on c9d474d. Not seen on screen: the off hand, crouching, or another player on a server. No vanilla harness compares this pose. ## Other projects' code none ## Self-check Run on Windows, before #6750 merged; that pull request is what fixes the Python failure below (`test_capture_lifecycle`), which this change doesn't touch. Since then main was merged in, keeping its ledger rows over this branch's (the same correction): the branch is now `anim.rs` only, +47, and the `anim` tests were run again and pass. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on naza, against upstream/main at e12185820, 6 min 45 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +49 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 602 run, FAILED (errors=1, skipped=2) (1 min 39 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (2 min 24 s) | | tests: horizon-client-lib | ✅ 1374 passed (2 min 21 s) | | doc tests | ✅ 0 passed (6 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | The remaining rows of the block (launcher tests, parity) were not kept: the launcher is untouched and this was a `--quick` run, so CI's parity job picks any affected harnesses. ## Screenshots Before and after: in a comment below. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:15 +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#7417
No description provided.