I am making an enemy player AI. I want him to stop when he reaches a cliff that is too high.
I put a raycast with -1 on Y (pointing down) and set the distance to 1.5. My hope was that the raycast would constantly hit the terrain mesh. Then when the terrain mesh dropped out by more than 1.5... BAM - it would trigger a No Hit Event for full stop. Unfortunately, I do not see a No Hit Event in the raycast action. Is there a way to do this, or is there a different approach to this problem that you could recommend?
Thank you very much,
Createasaurus