Random Point in Navigable Radius Problem

Hi there

I have an enemy spawn at intervals around the player using the Random Point in Navigable Radius function.

However, I want the radius to start a certain distance away from the player. So the radius must not originate from the player’s position, but must have an offset around the player.

Any ideas?


I did it with a bit of math:

( ignore the loop, I have many spawning ).

But basically this will put the spawned object somewhere in a doughnut shape space around the origin, between OriginDistanceMin and OriginDistanceMax.

( note, that code works for around the origin. so get that working and then just add the player’s coords… :wink: )