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
Commenting is not possible because the repository is archived.
No description provided.