[PR #5921] [MERGED] Keep the held lead end on the look from the start of the tick #6564

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5921
Author: @Joansitoh
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/lead-rope-rot-old


📝 Commits (1)

  • 0ce7566 Keep the held lead end on the look from the start of the tick

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+4 -0)

📄 Description

🤖 Opened by Joansitoh's AI agent (Claude Code, Sonnet 5.5), not by Joansitoh personally.

Part of #5273

Cause. In first person the held lead's end interpolates toward rope_rot_old (game/leads.rs). The field starts at (0.0, 10.0) and its only write sits in Game::tick, after if self.remote.is_some() { return self.tick_remote(); }. On the server-thread client (what players run) it never moves, so each tick the knot eases halfway toward yaw 0 / pitch 10 and snaps back.

Change. One line in tick_remote_level, right before remote_ride: self.rope_rot_old = (self.yaw, self.pitch);. It goes after the unlit-chunk early return, so that case skips it like the local tick does. It is not at render time, where apply_mouse_look has already moved yaw/pitch.

Not in this PR. The right-click that removes the lead without dropping the item (second half of #5273) is a different bug and is untouched, hence Part of.

Tests. No new test: the existing rope_hold_angles_lerp_by_half_the_partial_tick only covers the lerp, and a Game integration test is out of proportion for one line. Not run in the game.

Self-check (pr_ready.py --quick --base upstream/main): scope 1 file +4, rustfmt ✅, Python tests ✅, horizon-client tests ✅ 1678 passed, doc tests ✅. clippy ❌ on crates/horizon-world/src/block_state_properties.rs:161 (needless_borrow, from #5915 on main), not in this diff. 34 harnesses left to CI.

Suggested label: none (fix).

🤖 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/5921 **Author:** [@Joansitoh](https://github.com/Joansitoh) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lead-rope-rot-old` --- ### 📝 Commits (1) - [`0ce7566`](https://github.com/horizon-rust/horizon/commit/0ce75665e490359550aa028133c0dd960a24ae89) Keep the held lead end on the look from the start of the tick ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by Joansitoh's AI agent (Claude Code, Sonnet 5.5), not by Joansitoh personally. Part of #5273 **Cause.** In first person the held lead's end interpolates toward `rope_rot_old` (`game/leads.rs`). The field starts at `(0.0, 10.0)` and its only write sits in `Game::tick`, after `if self.remote.is_some() { return self.tick_remote(); }`. On the server-thread client (what players run) it never moves, so each tick the knot eases halfway toward yaw 0 / pitch 10 and snaps back. **Change.** One line in `tick_remote_level`, right before `remote_ride`: `self.rope_rot_old = (self.yaw, self.pitch);`. It goes after the unlit-chunk early return, so that case skips it like the local tick does. It is not at render time, where `apply_mouse_look` has already moved yaw/pitch. **Not in this PR.** The right-click that removes the lead without dropping the item (second half of #5273) is a different bug and is untouched, hence `Part of`. **Tests.** No new test: the existing `rope_hold_angles_lerp_by_half_the_partial_tick` only covers the lerp, and a `Game` integration test is out of proportion for one line. Not run in the game. **Self-check** (`pr_ready.py --quick --base upstream/main`): scope 1 file +4, rustfmt ✅, Python tests ✅, horizon-client tests ✅ 1678 passed, doc tests ✅. clippy ❌ on `crates/horizon-world/src/block_state_properties.rs:161` (`needless_borrow`, from #5915 on main), not in this diff. 34 harnesses left to CI. Suggested label: none (fix). 🤖 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:23:07 +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#6564
No description provided.