I did that like in endless course object spawning tutorial by unreal [(this)][2], but replacing box collision with sphere one.
And SOMEHOW it didn’t work ![]()
Error is that box extent isn’t compatible with sphere collision. What is other way to do that?
To get a random point within a sphere, use RandomUnitVector to get a random vector and the multiply it by RandomFloatInRange with Min=0.0 and Max equal to the radius of your sphere.
2 Likes
Oh, and add that to the world location of the spawn-sphere to get the spawn location in the world. I always forget that part…
2 Likes
