[PR #2531] [MERGED] Draw F3+B hitboxes for every entity #4402

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

📋 Pull Request Information

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

Base: main ← Head: fix/f3b-all-hitboxes


📝 Commits (3)

  • 348054d Draw F3+B hitboxes for every entity
  • 9b5c36e Merge remote-tracking branch 'origin/main' into HEAD
  • d53114f Size a drowned's thrown trident in F3+B

📊 Changes

5 files changed (+184 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game/debug_keys.rs (+165 -2)
📝 crates/horizon-client/src/game/fireworks.rs (+1 -1)
📝 crates/horizon-client/src/game/fishing.rs (+4 -4)
📝 crates/horizon-client/src/game/trident.rs (+1 -1)
📝 crates/horizon-client/src/gizmos.rs (+13 -0)

📄 Description

What and why

F3+B drew boxes only for mobs, dropped items, dragon parts and the local player. Now it draws every entity the client has, like vanilla's EntityHitboxDebugRenderer: paintings, item frames, cushions, armor stands (not invisible ones), boats, minecarts, XP orbs, falling blocks, primed TNT, end crystals, arrows and other projectiles, tridents, firework rockets, fishing hooks, lightning bolts, the ender dragon's own 16 x 8 body box and LAN guests. Each gets the white box, the blue view arrow and, for living ones (armor stands, the dragon), the red eye line. Sizes and eye heights come from EntityTypes. Moving entities are drawn at their interpolated position.

Not done here: the 2 pixel feet point (the gizmo renderer has only lines) and the yellow seat rectangle for riders (it needs each vehicle's passenger attachment point).

Vanilla reference

EntityHitboxDebugRenderer.emitGizmos / showHitboxes, EntityTypes sizes, Painting and ItemFrame direction rotations for the view arrow.

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/2531 **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/f3b-all-hitboxes` --- ### 📝 Commits (3) - [`348054d`](https://github.com/horizon-rust/horizon/commit/348054d26e848f42f9dec6cf0d38586e225c181d) Draw F3+B hitboxes for every entity - [`9b5c36e`](https://github.com/horizon-rust/horizon/commit/9b5c36e23218b09cf044c50e70096c01c0e4ffb8) Merge remote-tracking branch 'origin/main' into HEAD - [`d53114f`](https://github.com/horizon-rust/horizon/commit/d53114fa82f8af75b60fca4c9cf5a996ba0e97fc) Size a drowned's thrown trident in F3+B ### 📊 Changes **5 files changed** (+184 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/debug_keys.rs` (+165 -2) 📝 `crates/horizon-client/src/game/fireworks.rs` (+1 -1) 📝 `crates/horizon-client/src/game/fishing.rs` (+4 -4) 📝 `crates/horizon-client/src/game/trident.rs` (+1 -1) 📝 `crates/horizon-client/src/gizmos.rs` (+13 -0) </details> ### 📄 Description ## What and why F3+B drew boxes only for mobs, dropped items, dragon parts and the local player. Now it draws every entity the client has, like vanilla's `EntityHitboxDebugRenderer`: paintings, item frames, cushions, armor stands (not invisible ones), boats, minecarts, XP orbs, falling blocks, primed TNT, end crystals, arrows and other projectiles, tridents, firework rockets, fishing hooks, lightning bolts, the ender dragon's own 16 x 8 body box and LAN guests. Each gets the white box, the blue view arrow and, for living ones (armor stands, the dragon), the red eye line. Sizes and eye heights come from `EntityTypes`. Moving entities are drawn at their interpolated position. Not done here: the 2 pixel feet point (the gizmo renderer has only lines) and the yellow seat rectangle for riders (it needs each vehicle's passenger attachment point). ## Vanilla reference `EntityHitboxDebugRenderer.emitGizmos` / `showHitboxes`, `EntityTypes` sizes, `Painting` and `ItemFrame` direction rotations for the view arrow. ## 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:54 +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#4402
No description provided.