[PR #7315] [MERGED] Expose native camera and block collision reads #7486

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7315
Author: @Xmilon
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: native/camera-read


📝 Commits (7)

  • 239155a Expose native camera and block collision reads
  • 01d788a Merge upstream/main
  • ec99e37 Native camera: build it only when a native mod is loaded
  • bc04fc9 Native camera: drop the view.is_some() test, view is a Mat4
  • 6a6b123 Native camera: a world frame is any frame that is not the title panorama
  • b2799a2 Merge main into #7315
  • 3f636a7 Merge #7315's head into the main merge

📊 Changes

7 files changed (+90 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+28 -0)
📝 crates/horizon-client/src/game/mod_api_host_generated.rs (+6 -0)
📝 crates/horizon-client/src/game/native_hooks.rs (+17 -1)
📝 crates/horizon-client/src/mod_api.rs (+18 -0)
📝 crates/horizon-client/src/mod_api/generated_host.rs (+9 -0)
📝 docs/native-mods.md (+3 -0)
➕ tools/native-hook-fragments/camera_read.json (+9 -0)

📄 Description

🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally.

Closes #5276

  • Expose the latest extracted world camera, including camera-relative view and reversed-Z projection matrices.
  • Expose block-local collision boxes using the existing empty-context collision shape.
  • Document and generate the native host helpers.

Camera reads before frame extraction may return the previous frame. Collision errors and unloaded blocks return no boxes.

Checks: cargo fmt --all, git diff --check, cargo run -p xtask -- mod-api and --check. No client build, cargo tests, or in-game verification were run as requested. The generated API also includes pre-existing upstream generator drift for four living hooks.

Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon.

🤖 Generated with GPT-6.1 Terra (Claude Code orchestration).


🔄 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/7315 **Author:** [@Xmilon](https://github.com/Xmilon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `native/camera-read` --- ### 📝 Commits (7) - [`239155a`](https://github.com/horizon-rust/horizon/commit/239155ad17a8cf1d5f85b5f394c6b6e0fc64049d) Expose native camera and block collision reads - [`01d788a`](https://github.com/horizon-rust/horizon/commit/01d788a4c8335965496c1fcc51c9cacbd02a98c1) Merge upstream/main - [`ec99e37`](https://github.com/horizon-rust/horizon/commit/ec99e376afc48692efb5d4aea120c51a057f51be) Native camera: build it only when a native mod is loaded - [`bc04fc9`](https://github.com/horizon-rust/horizon/commit/bc04fc95fb30513214883003bc83d954de89559d) Native camera: drop the view.is_some() test, view is a Mat4 - [`6a6b123`](https://github.com/horizon-rust/horizon/commit/6a6b1233fc02891b7608bbc72374678f5c631021) Native camera: a world frame is any frame that is not the title panorama - [`b2799a2`](https://github.com/horizon-rust/horizon/commit/b2799a2e4c9f214717fe4e64bac91604f9554443) Merge main into #7315 - [`3f636a7`](https://github.com/horizon-rust/horizon/commit/3f636a793650f0e34ff93657af7a3f9ce8eab4af) Merge #7315's head into the main merge ### 📊 Changes **7 files changed** (+90 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+28 -0) 📝 `crates/horizon-client/src/game/mod_api_host_generated.rs` (+6 -0) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+17 -1) 📝 `crates/horizon-client/src/mod_api.rs` (+18 -0) 📝 `crates/horizon-client/src/mod_api/generated_host.rs` (+9 -0) 📝 `docs/native-mods.md` (+3 -0) ➕ `tools/native-hook-fragments/camera_read.json` (+9 -0) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally. Closes #5276 - Expose the latest extracted world camera, including camera-relative view and reversed-Z projection matrices. - Expose block-local collision boxes using the existing empty-context collision shape. - Document and generate the native host helpers. Camera reads before frame extraction may return the previous frame. Collision errors and unloaded blocks return no boxes. Checks: cargo fmt --all, git diff --check, cargo run -p xtask -- mod-api and --check. No client build, cargo tests, or in-game verification were run as requested. The generated API also includes pre-existing upstream generator drift for four living hooks. Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon. 🤖 Generated with GPT-6.1 Terra (Claude Code orchestration). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:04 +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#7486
No description provided.