[PR #4718] [MERGED] Sprint: a shallow wall slide no longer stops the sprint (isHorizontalCollisionMinor) #5800

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4718
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/10-minor


📝 Commits (1)

  • 3c5dd6b Port LocalPlayer.isHorizontalCollisionMinor so a shallow wall slide keeps the sprint

📊 Changes

1 file changed (+59 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/motion.rs (+59 -6)

📄 Description

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

Part of #3518

  • LocalPlayer.shouldStopRunSprinting: the sprint check read collision.minor, but the motion world's minor_horizontal_collision always returned false, so any wall touch stopped the sprint. It now ports LocalPlayer.isHorizontalCollisionMinor (angle between the post-modifyInput move vector rotated by yaw and the resolved movement under 0.13962634 rad), using Mth.sin/cos and Math.acos.

Vanilla methods followed: LocalPlayer.isHorizontalCollisionMinor, Entity.move (minorHorizontalCollision), LocalPlayer.shouldStopRunSprinting.

Tests: motion::tests::horizontal_collision_minor_by_angle; cargo test -p horizon-client --lib motion::; fmt and clippy clean.

🤖 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/4718 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/10-minor` --- ### 📝 Commits (1) - [`3c5dd6b`](https://github.com/horizon-rust/horizon/commit/3c5dd6b03b499e8962bcbaf64cb78da0b1442ff4) Port LocalPlayer.isHorizontalCollisionMinor so a shallow wall slide keeps the sprint ### 📊 Changes **1 file changed** (+59 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/motion.rs` (+59 -6) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 - `LocalPlayer.shouldStopRunSprinting`: the sprint check read `collision.minor`, but the motion world's `minor_horizontal_collision` always returned false, so any wall touch stopped the sprint. It now ports `LocalPlayer.isHorizontalCollisionMinor` (angle between the post-`modifyInput` move vector rotated by yaw and the resolved movement under 0.13962634 rad), using `Mth.sin/cos` and `Math.acos`. Vanilla methods followed: `LocalPlayer.isHorizontalCollisionMinor`, `Entity.move` (minorHorizontalCollision), `LocalPlayer.shouldStopRunSprinting`. Tests: `motion::tests::horizontal_collision_minor_by_angle`; `cargo test -p horizon-client --lib motion::`; fmt and clippy clean. 🤖 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 05:15:05 +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#5800
No description provided.