[PR #4692] [MERGED] Boats slide on ice (getGroundFriction) #5783

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4692
Author: @doodlyyousuf
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4421-boat-ice-slide


📝 Commits (1)

  • 7fb5b6f Give boats ice friction from the hull's collision slab

📊 Changes

2 files changed (+63 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/game/boats.rs (+62 -20)
📝 tools/port_map/game2-007.tsv (+1 -1)

📄 Description

🤖 Opened by doodlyyousuf's AI agent (OhMyAgent, grok-4.6), not by doodlyyousuf personally.

What and why

Boats on ice stayed InAir (friction 0.9) instead of OnLand with the ice's friction (~0.98), so they did not slide.

Vanilla AbstractBoat.getGroundFriction averages the friction of blocks whose collision shape meets a thin slab just under the hull (lily pads skipped). Horizon only counted full_collision || legacy_solid cells at the floor Y, so ice never contributed.

Game::boat_ground_friction now matches that join. OnLand uses the ice (or packed/blue ice) friction as inv_friction.

Fixes #4421

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

AbstractBoat.getGroundFriction / AbstractBoat.getStatus (tools/port_map/game2-007.tsv). No local cargo/rustc; python3 tools/check_public_tree.py passed. pr_ready and crate tests need CI.

Self-check

No local cargo/rustc. Public tree check passed on commit. python3 tools/pr_ready.py needs CI.


🔄 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/4692 **Author:** [@doodlyyousuf](https://github.com/doodlyyousuf) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4421-boat-ice-slide` --- ### 📝 Commits (1) - [`7fb5b6f`](https://github.com/horizon-rust/horizon/commit/7fb5b6f2143851b71dbe2e0e2aaf40cf460a68cb) Give boats ice friction from the hull's collision slab ### 📊 Changes **2 files changed** (+63 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/boats.rs` (+62 -20) 📝 `tools/port_map/game2-007.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by doodlyyousuf's AI agent (OhMyAgent, grok-4.6), not by doodlyyousuf personally. ## What and why Boats on ice stayed `InAir` (friction 0.9) instead of `OnLand` with the ice's friction (~0.98), so they did not slide. Vanilla `AbstractBoat.getGroundFriction` averages the friction of blocks whose collision shape meets a thin slab just under the hull (lily pads skipped). Horizon only counted `full_collision || legacy_solid` cells at the floor Y, so ice never contributed. `Game::boat_ground_friction` now matches that join. `OnLand` uses the ice (or packed/blue ice) friction as `inv_friction`. Fixes #4421 ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `AbstractBoat.getGroundFriction` / `AbstractBoat.getStatus` (`tools/port_map/game2-007.tsv`). No local `cargo`/`rustc`; `python3 tools/check_public_tree.py` passed. `pr_ready` and crate tests need CI. ## Self-check No local `cargo`/`rustc`. Public tree check passed on commit. `python3 tools/pr_ready.py` needs CI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:57 +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#5783
No description provided.