Join Nostr
2026-05-17 11:39:44 UTC
in reply to

Natanox 🔜 #40C3 on Nostr: nprofile1q…n5y0h nprofile1q…uye0k tl;dr Shooting some lines out of a source (your ...

tl;dr

Shooting some lines out of a source (your NPC) and detect where it hit things / look at how they bounce around, depending on your usecase.

If your levels are dynamic in some fashion (i.e. you can't just set big boxes as triggers for NPCs to detect crouch zones) the idea would be to shoot a few dozen rays in the desired direction and detect where they intersect with some level hitbox so you can give the NPC an understanding of approximate width and height of an opening.