|
|
Suso Banderas wrote:
> Oh I get it now. POV-Ray really functions reverse of what I expected.
> Being a programmer, I was expecting it to keep track of what the box's
> previous rotational angle was on the last iteration of the while loop. I
> should have realized that I wasn't doing that with the position. Thanks
> for your help. Both of you.
Well, at each iteration it creates a new box from scratch, so...
BTW, no need to resort to trigonometry here, just do the translation before
rotation:
#declare Rad = 3;
#declare Rot = 0;
#while(Rot < 360)
box {
-1, 1
pigment { rgb y }
translate Rad*z;
rotate Rot*y
}
#declare Rot = Rot + 30;
#end
Post a reply to this message
|
|