So im trying to get a point on a sphere via an angle.
double X = Math.Cos(pitch * (Math.PI / 180));
double Y = Math.Sin(pitch * (Math.PI / 180)) * Math.Sin(yaw * (Math.PI / 180));
double Z = Math.Sin(pitch * (Math.PI / 180)) * Math.Cos(yaw * (Math.PI / 180));
I've tried this, but the point it outputs seems to be clamped to the XZ axis, and increasing/decreasing the yaw doesn't do anything to the point it spits out.
I cant figure out whats wrong with this code? Could someone help me identify the problem?