[PR #691] [MERGED] Trident throw pose in third person #2731

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

📋 Pull Request Information

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

Base: main ← Head: fix/trident-throw-pose


📝 Commits (1)

  • 69a0d13 Raise the trident over the shoulder while charging a throw

📊 Changes

1 file changed (+45 additions, -9 deletions)

View changed files

📝 crates/horizon-client/src/mobs/anim.rs (+45 -9)

📄 Description

What and why

Part of #536 (the third-person throw pose; riptide's spin is not in this PR, see below).

While charging a throw, the trident looked inverted in third person. AvatarRenderer.getArmPose gives THROW_TRIDENT to the hand using a trident, and HumanoidModel lifts that arm over the head (xRot * 0.5 - pi, yRot = 0). Horizon kept the plain item pose, so the trident, drawn with its throwing model while in use, pointed down through the body.

  • A ThrowTrident arm pose: the player's main hand while using a trident. Like vanilla's (twoHanded = false, affectsOffhandPose = true), it leaves the other arm's pose alone.
  • DrownedRenderer.getArmPose: an aggressive drowned with a trident raises it the same way. AnimationUtils.animateZombieArms skips an arm in THROW_TRIDENT.

Not in this PR: riptide's auto-spin attack. Horizon applies only riptide's launch velocity. Vanilla also starts autoSpinAttackTicks (20), switches the player to the SPIN_ATTACK pose (0.6x0.6 box), damages and stops on the first living entity it touches, spins the model (LivingEntityRenderer.setupRotations: X -90 - xRot, Y ageInTicks * -75), draws SpinAttackEffectLayer, and uses the first-person spin transform. That is a feature-sized change across the motion kernel, the pose, combat and rendering, so it should be its own PR. #536 stays open for it.

Vanilla reference

AvatarRenderer.getArmPose, HumanoidModel.ArmPose.THROW_TRIDENT / poseRightArm / poseLeftArm / setupAnim (which arm is posed first), DrownedRenderer.getArmPose, AnimationUtils.animateZombieArms. A unit test pins the raised arm and the zombie-arm skip.

Self-check

One integration commit of this PR with #689 and #690, on origin/main 5d027877 (Mac mini):

cargo fmt --all --check                                     ok
cargo clippy --workspace --all-targets -- -D warnings       ok
cargo test -p horizon-client --lib                          806 passed, 0 failed (11 ignored)
python3 tools/parity.py --changed origin/main               86/86 affected harnesses pass, 0 failed

Screenshots

In game (offscreen on the Mac mini), charging a trident in third person: from the front the right arm is raised with the trident above the head. From the side the prongs point forward with the shaft trailing back, as in vanilla. Before this, the arm hung in the item pose with the trident upside down.

🤖 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/691 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/trident-throw-pose` --- ### 📝 Commits (1) - [`69a0d13`](https://github.com/horizon-rust/horizon/commit/69a0d13edafb9764cce33a7fc77bb2bd9b470c6a) Raise the trident over the shoulder while charging a throw ### 📊 Changes **1 file changed** (+45 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/anim.rs` (+45 -9) </details> ### 📄 Description ## What and why Part of #536 (the third-person throw pose; riptide's spin is not in this PR, see below). While charging a throw, the trident looked inverted in third person. `AvatarRenderer.getArmPose` gives `THROW_TRIDENT` to the hand using a trident, and `HumanoidModel` lifts that arm over the head (`xRot * 0.5 - pi`, `yRot = 0`). Horizon kept the plain item pose, so the trident, drawn with its throwing model while in use, pointed down through the body. - A `ThrowTrident` arm pose: the player's main hand while using a trident. Like vanilla's (`twoHanded = false`, `affectsOffhandPose = true`), it leaves the other arm's pose alone. - `DrownedRenderer.getArmPose`: an aggressive drowned with a trident raises it the same way. `AnimationUtils.animateZombieArms` skips an arm in THROW_TRIDENT. Not in this PR: riptide's auto-spin attack. Horizon applies only riptide's launch velocity. Vanilla also starts `autoSpinAttackTicks` (20), switches the player to the `SPIN_ATTACK` pose (0.6x0.6 box), damages and stops on the first living entity it touches, spins the model (`LivingEntityRenderer.setupRotations`: X -90 - xRot, Y ageInTicks * -75), draws `SpinAttackEffectLayer`, and uses the first-person spin transform. That is a feature-sized change across the motion kernel, the pose, combat and rendering, so it should be its own PR. #536 stays open for it. ## Vanilla reference `AvatarRenderer.getArmPose`, `HumanoidModel.ArmPose.THROW_TRIDENT` / `poseRightArm` / `poseLeftArm` / `setupAnim` (which arm is posed first), `DrownedRenderer.getArmPose`, `AnimationUtils.animateZombieArms`. A unit test pins the raised arm and the zombie-arm skip. ## Self-check One integration commit of this PR with #689 and #690, on origin/main 5d027877 (Mac mini): ``` cargo fmt --all --check ok cargo clippy --workspace --all-targets -- -D warnings ok cargo test -p horizon-client --lib 806 passed, 0 failed (11 ignored) python3 tools/parity.py --changed origin/main 86/86 affected harnesses pass, 0 failed ``` ## Screenshots In game (offscreen on the Mac mini), charging a trident in third person: from the front the right arm is raised with the trident above the head. From the side the prongs point forward with the shaft trailing back, as in vanilla. Before this, the arm hung in the item pose with the trident upside down. 🤖 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-02 15:58: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#2731
No description provided.