3D polar coords.
Do they exist/what are they? I ask because I'm trying to make a preset with a point that bounces around in a sphere (I've already conquered the circle 😁 )
10 posts
rx, ry and rz ar the rotations around the x, y and z axis respectively and d, r1 and r2 are d, theta and phi described above.
Per Frame: rx=rx+0.01;ry=ry-0.02;rz=rz+0.1*getspec(0.1,0.1,0);crz=cos(rz);srz=sin(rz);cry=cos(ry);sry=sin(ry);crx=cos(rx);srx=sin(rx);asp=h/w;
Per Point:
d=0.5;
r1=7*i;
r2=140*i;
x1=d*cos(r1)*sin(r2);
y1=d*cos(r1)*cos(r2);
z1=d*sin(r1);
x2=x1*crz-y1*srz;
y2=x1*srz+y1*crz;
z2=z1;
x3=x2*cry+z2*sry;
y3=y2;
z3=-x2*sry+z2*cry;
x1=x3;
y1=y3*crx-z3*srx;
z1=y3*srx+z3*crx;
z1=1/(2+z1*0.5);
x=asp*x1*z1;
y=y1*z1;