How to spawn randomly in sphere?

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.

1 Like

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…

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 :smiley:
Error is that box extent isn’t compatible with sphere collision. What is other way to do that?