[PR #2465] [MERGED] Fix baby legs jittering between ticks #4342

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

📋 Pull Request Information

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

Base: main ← Head: fix/baby-walk-position


📝 Commits (1)

  • e23fcb1 Scale a baby's walk position when it is read, as vanilla does

📊 Changes

2 files changed (+3 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs/anim.rs (+2 -1)
📝 crates/horizon-client/src/mobs/living.rs (+1 -1)

📄 Description

What and why

A baby mob's legs jittered between ticks. The tick added limb_speed * 3 to the walk position for babies, but the renderer took out one tick's worth of speed without the factor, so the interpolated position stepped back and forth.

Vanilla keeps the position unscaled and applies the baby factor of 3 when the position is read. The tick now adds the plain speed and the renderer scales the interpolated position. This also fixes babies on a server (or the server thread), where the client never applied the factor at all.

Vanilla reference

  • WalkAnimationState.position(float) and update (positionScale)
  • LivingEntity.updateWalkAnimation (isBaby() ? 3.0F : 1.0F)

Self-check

cargo check -p horizon-client passes.


🔄 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/2465 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/baby-walk-position` --- ### 📝 Commits (1) - [`e23fcb1`](https://github.com/horizon-rust/horizon/commit/e23fcb1040d573c9254223af79a1f4c27c30bd35) Scale a baby's walk position when it is read, as vanilla does ### 📊 Changes **2 files changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/anim.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/living.rs` (+1 -1) </details> ### 📄 Description ## What and why A baby mob's legs jittered between ticks. The tick added `limb_speed * 3` to the walk position for babies, but the renderer took out one tick's worth of speed without the factor, so the interpolated position stepped back and forth. Vanilla keeps the position unscaled and applies the baby factor of 3 when the position is read. The tick now adds the plain speed and the renderer scales the interpolated position. This also fixes babies on a server (or the server thread), where the client never applied the factor at all. ## Vanilla reference - `WalkAnimationState.position(float)` and `update` (`positionScale`) - `LivingEntity.updateWalkAnimation` (`isBaby() ? 3.0F : 1.0F`) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:28 +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#4342
No description provided.