How to get a random point in a hollow circle
Like in this image,player is the red point,and I want to get random point in black area.
asked Aug 14 '19 at 06:16 AM in C++ Programming
Idk about c++, but with blueprints you would take the random unit vector node and multiply the by the radius of your circle. Could use the random float in range node for the radius to control the width of the circle.
answered Aug 14 '19 at 06:53 AM
Here the c++ version:
you would need to add the player location to the result obviously
Follow this question
Once you sign in you will be able to subscribe for any updates here