|
![](/i/fill.gif) |
Andrea Ryan wrote:
> I tried to divide every other vector by ptmove but it didn't work. This code
> rotates and moves the odd numbered points and just rotates the even numbered
> points. The code is in a while loop. Rotation_no and point_no both get added
> to one at the end.
> Brendan Ryan
>
> #local determine = (point_no/2)-int(point_no/2);
> #switch (determine)
> #case (0.5) //odd numbered point
> #local vec =vrotate(<0,1,0>,<0,0,(angle_of_rotation*rotation_no)>/ptmove);
> #break
> #case (0) //even numbered point
> #local vec=vrotate(<0,1,0>,<0,0,angle_of_rotation*rotation_no>);
> #break
> #end
The problem here is that you divided by ptmove within the vrotate() statement.
Change the fourth line to this:
#local vec = vrotate(<0,1,0>,<0,0,angle_of_rotation*rotation_no>)/ptmove;
and it should work.
Post a reply to this message
|
![](/i/fill.gif) |