Download

GetRandomReachablePointInRadius but with a min and max radius?

I wanna spawn something in a donut around the actor, but it must also be in a NavMeshBoundsVolume.
What’s the best way to achieve this?

I attached a quick mockup where the player (blue star) is in a corner, red is the inner radius where nothing can spawn, green is the outer radius where things can spawn, and the green+red stripes area is out of bounds

Alright got a workaround, make a collision box (or sphere) around the player, turned off collisions for it, made it have Nav Area Class “NavArea_Null” and checked dynamic. Then in project settings went under “Navigation Mesh” and set Runtime Generation to Dynamic.