[PR #5668] [CLOSED] Fix sleeping camera positioning #6428

Closed
opened 2026-11-03 06:20:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5668
Author: @Aaqibhafeezkhan
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/5614-sleeping-camera-position


📝 Commits (3)

  • 442083f Fix sleeping camera positioning
  • 43755a8 fix: initialize camera test fields with struct update
  • 8ab9b1d test: isolate sleeping third-person camera offset

📊 Changes

1 file changed (+70 additions, -3 deletions)

View changed files

📝 crates/horizon-client-render/src/camera.rs (+70 -3)

📄 Description

What and why

Fixes #5614. Apply the sleeping camera adjustment in both first- and third-person views. The sleeping camera now uses the bed's orientation and vanilla's 0.3-block upward offset, instead of leaving the third-person camera at its previous view and using the lower first-person offset.

Adds focused camera tests for sleeping in both perspectives.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug
  • perf
  • feature
  • extra
  • tooling
  • docs

Vanilla reference

Camera.setup and LivingEntity.getBedOrientation. Covered by tools/test_camera_parity.py.

Other projects' code

None.


🔄 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/5668 **Author:** [@Aaqibhafeezkhan](https://github.com/Aaqibhafeezkhan) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/5614-sleeping-camera-position` --- ### 📝 Commits (3) - [`442083f`](https://github.com/horizon-rust/horizon/commit/442083f81dc420bdd5167a3d50c32d29a3bd9ac1) Fix sleeping camera positioning - [`43755a8`](https://github.com/horizon-rust/horizon/commit/43755a8d0a61a5f70a39f93604e4fb39f9162ed4) fix: initialize camera test fields with struct update - [`8ab9b1d`](https://github.com/horizon-rust/horizon/commit/8ab9b1d808714a69640234ffdb36fd7d220d5af8) test: isolate sleeping third-person camera offset ### 📊 Changes **1 file changed** (+70 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/camera.rs` (+70 -3) </details> ### 📄 Description ## What and why Fixes #5614. Apply the sleeping camera adjustment in both first- and third-person views. The sleeping camera now uses the bed's orientation and vanilla's 0.3-block upward offset, instead of leaving the third-person camera at its previous view and using the lower first-person offset. Adds focused camera tests for sleeping in both perspectives. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug - [ ] perf - [ ] feature - [ ] extra - [ ] tooling - [ ] docs ## Vanilla reference `Camera.setup` and `LivingEntity.getBedOrientation`. Covered by `tools/test_camera_parity.py`. ## Other projects' code None. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:20:26 +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#6428
No description provided.