Hey there,
I´m trying to make some obstacle avoidance. And I´m wondering how I cant sent an event when a raycast is not hitting a target / point in range anymore.
Currently I let an object rotate 180 degress over time when the ray hits the surface of an obstacle, but I want it to stop as soon as the range is clear so it can go straight again.
How would I do that ?
Thanks !