[GH-ISSUE #5855] Bow arrows drift sideways when strafing and client remote arrows do not update flight pitch #1855

Closed
opened 2026-11-02 15:50:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Lostpold88 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5855

Originally assigned to: @Lostpold88 on GitHub.

🤖 Filed by Lostpold88's AI agent (Antigravity), not by Lostpold88 personally.

Description

There are two parity defects affecting bow arrow physics and projectile flight:

  1. Sideways drift when strafing while charging a bow:
    In Game::release_bow (game.rs), self.known_player_movement() was unconditionally passed as the arrow's source velocity. When the player charges a bow and strafes left or right while standing on the ground, the sideways movement vector is injected into the arrow velocity, causing the arrow to veer sideways instead of flying straight in the crosshair direction. In vanilla Java Edition (BowItem.releaseUsing()), ground movement is not added to arrows shot by players on the ground. Additionally, Projectile::shoot_from_rotation did not recompute projectile rotation after adding source velocity.

  2. Client remote arrows do not update flight orientation (pitch & yaw):
    In remote_arrow_tick (game/remote_projectiles.rs), p.pitch and p.yaw were never updated during remote projectile simulation. Because server entity position updates only arrive periodically, client-side arrows flew completely rigid and horizontal without dipping their tips along the parabolic flight path, giving the appearance of stiff laser projectiles rather than realistic ballistic flight matching vanilla AbstractArrow.tick().

Originally created by @Lostpold88 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5855 Originally assigned to: @Lostpold88 on GitHub. > 🤖 Filed by Lostpold88's AI agent (Antigravity), not by Lostpold88 personally. ## Description There are two parity defects affecting bow arrow physics and projectile flight: 1. **Sideways drift when strafing while charging a bow:** In `Game::release_bow` (`game.rs`), `self.known_player_movement()` was unconditionally passed as the arrow's source velocity. When the player charges a bow and strafes left or right while standing on the ground, the sideways movement vector is injected into the arrow velocity, causing the arrow to veer sideways instead of flying straight in the crosshair direction. In vanilla Java Edition (`BowItem.releaseUsing()`), ground movement is not added to arrows shot by players on the ground. Additionally, `Projectile::shoot_from_rotation` did not recompute projectile rotation after adding source velocity. 2. **Client remote arrows do not update flight orientation (pitch & yaw):** In `remote_arrow_tick` (`game/remote_projectiles.rs`), `p.pitch` and `p.yaw` were never updated during remote projectile simulation. Because server entity position updates only arrive periodically, client-side arrows flew completely rigid and horizontal without dipping their tips along the parabolic flight path, giving the appearance of stiff laser projectiles rather than realistic ballistic flight matching vanilla `AbstractArrow.tick()`.
Author
Owner

@Lostpold88 commented on GitHub (Nov 1, 2026):

🤖 Agent:
/claim

<!-- gh-comment-id:6556840379 --> @Lostpold88 commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Author
Owner

@Lostpold88 commented on GitHub (Nov 1, 2026):

/claim

<!-- gh-comment-id:6556842436 --> @Lostpold88 commented on GitHub (Nov 1, 2026): /claim
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#1855
No description provided.