|
![](/i/fill.gif) |
A bit better...
box { <-.025,0,-.025>, <.025,VDist(<0,0,0>, vect),.025> pigment { rgb <.2,0,0>}
rotate <0,0,degrees( atan2( vect.y, vect.x )) - 90>
rotate <0,degrees(atan2(VDist(<vect.x,vect.y,0> , vect),vect.z)),0>
}
First it rotates the box around Z axiz. That works right. But the second
rotation around Y axiz is wrong. Anybody knows how to fix that? thanks
Post a reply to this message
|
![](/i/fill.gif) |