So I’m working on a little project for fun, but I need to have these points be spawned in a spherical shape around a point in the middle. I know I’d need math.cos to make it work, but I’m having trouble figuring out how to implement it.
Here’s a very crude example of what I’m trying to achieve. (Image in 2 dimensions, but final result would be in 3, to make a sphere, not a circle.)

The only code I have right now, just spawns in the center sphere, and the sphere on top.
Any help is appreciated.