I’m currently working in an AI in which it will try to get distant to the player if it is close to it.
- Is there a way to get a random point excluding the player avoidance circle from the random selection?
- I think it is expensive if the process is to keep testing the random point until the distance of the player origin to the random point is greater than the radius of the avoidance circle?
As stated in the topic title, it should be in the annular space between the avoidance and the maximum allowed.
Image1 (Shows the annular space I’m referring)
Image2 (What I’m planning but can cause an infinite loop or a stall)
Thanks in advanced!