Use manual ray cast for railgun targeting #16

Merged
TysonTheEmber merged 1 commit from codex/refactor-updatehitinformation-for-manual-ray-tracing into master 2025-10-04 00:09:44 -06:00
TysonTheEmber commented 2025-10-04 00:09:37 -06:00 (Migrated from github.com)

Summary

  • replace reliance on Minecraft's cached hit result with a manual ray cast for the railgun HUD
  • compute the ray from the player's eye position toward their view direction out to the world border radius
  • remove the old short-distance fallback and store the new hit result for HUD usage

Testing

  • not run

https://chatgpt.com/codex/tasks/task_e_68e0b9b4ba0c83258aa443a0b13a735a

## Summary - replace reliance on Minecraft's cached hit result with a manual ray cast for the railgun HUD - compute the ray from the player's eye position toward their view direction out to the world border radius - remove the old short-distance fallback and store the new hit result for HUD usage ## Testing - not run ------ https://chatgpt.com/codex/tasks/task_e_68e0b9b4ba0c83258aa443a0b13a735a
Sign in to join this conversation.
No reviewers
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
TysonTheEmber/orbital-railgun-forge-1.20.1!16
No description provided.