Tried implement it into my npc system, went from around 20 fps with 2k npcs to crashing my studio, I think this is meant to be used with a static origin point and direction, not something that moves actively judging by the structure of the class.
Here’s my implementation in case anyone wants to see if I made mistakes