Hi all,
This may seem like a silly question but I have been banging my head against the wall trying to make a raycast work inside Entities.ForEach(). I’ve been nearly successful updating the code from this thread, but it’s outdated and not quite working for me. I’ve also tried the code at the bottom of the docs page, but I get burst errors when running it inside Entities.ForEach() even when using .run().
Does anyone have updated code for how to perform a raycast inside Entities.ForEach()?