[PR #2227] [MERGED] Pull the third-person camera back further when riding a happy ghast #4121

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

📋 Pull Request Information

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

Base: main ← Head: fix/happy-ghast-camera-distance


📝 Commits (1)

  • 13144a8 Pull the third-person camera back further when riding a happy ghast

📊 Changes

1 file changed (+11 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/perspective.rs (+11 -2)

📄 Description

What and why

In third person the camera sat the same distance behind every mount (4 blocks). On a happy ghast vanilla pulls it back to 8 blocks, so the player can see the big mob they ride. The camera now reads the mount's camera_distance and scale attributes (from the mob type's default attributes) instead of using a fixed 4 and 1. This works the same in the in-frame game and on the server thread, where the mount is a client-side mob with the same type data.

Vanilla reference

  • HappyGhast.createAttributes: Attributes.CAMERA_DISTANCE 8.0.
  • Camera.setup: for a living vehicle it reads getScale() and CAMERA_DISTANCE, and the zoom is the larger of the rider's and the vehicle's scale * camera_distance.

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/2227 **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/happy-ghast-camera-distance` --- ### 📝 Commits (1) - [`13144a8`](https://github.com/horizon-rust/horizon/commit/13144a82a15291da42e1449741ae15d63c33d4a9) Pull the third-person camera back further when riding a happy ghast ### 📊 Changes **1 file changed** (+11 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/perspective.rs` (+11 -2) </details> ### 📄 Description ## What and why In third person the camera sat the same distance behind every mount (4 blocks). On a happy ghast vanilla pulls it back to 8 blocks, so the player can see the big mob they ride. The camera now reads the mount's `camera_distance` and `scale` attributes (from the mob type's default attributes) instead of using a fixed 4 and 1. This works the same in the in-frame game and on the server thread, where the mount is a client-side mob with the same type data. ## Vanilla reference - `HappyGhast.createAttributes`: `Attributes.CAMERA_DISTANCE` 8.0. - `Camera.setup`: for a living vehicle it reads `getScale()` and `CAMERA_DISTANCE`, and the zoom is the larger of the rider's and the vehicle's `scale * camera_distance`. ## 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:14:50 +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#4121
No description provided.