|
![](/i/fill.gif) |
"Nostromo" <nomail@nomail> wrote:
> Thanks for your help, but it still won't rotate around the middle of thebig
> cube. Maybe someone can have a look at my code and tell me what's wrong?
>
> Here's the POV file
>
[snip]
> object { Rubics
> pigment { color Green } //Col_Glass_Vicksbottle }
> finish {
> phong 1
> reflection 0.15
> ambient 0.2
> diffuse 0.9
> }
> interior { I_Glass }
> scale <3,3,3>
> rotate <clock, clock*2, clock*4>
> translate +0.50*(min_extent(Rubics)+max_extent(Rubics))
> }
>
> -----------------------------------------------
>
> When I animate this I want the cube to rotate around it's center, but it's
> rotating around some point near one of the corners.
>
> Thanks a lot in advance.
Nostromo
You should translate to the origin before rotating
Stephen
Post a reply to this message
|
![](/i/fill.gif) |