Hi, your math is wrong. Try using spherical coordinates. So you would need two angles and a radius to describe a sphere, if you use only one angle you will get circles/cylinders. So
x = r * sin "theta" * cos "phi"
y = r * sin "theta" * sin "phi"
z = r * cos "theta"
Where r is constant, “theta” goes from 0 to pi and “phi” goes from 0 to 2*pi (imagine you got a point in a distance of r to another point (center) and then rotate this point 180 degree around the center. That would give you a half circle. Then you would rotate that whole half circle by 360 degree and would get a sphere):