POV-Ray : Newsgroups : povray.newusers : Rotations out the origin : Re: Rotations out the origin Server Time
29 Jul 2024 12:14:43 EDT (-0400)
  Re: Rotations out the origin  
From: Mike the Elder
Date: 11 Jan 2006 14:10:00
Message: <web.43c5575a1e81bb8a5a8888d90@news.povray.org>
A (hopefully) helpful hint:

It's usually a good idea to design an object so that the
point around which it will most often rotate, usually the
center of gravity, is the origin.

This box: #declare EZRotBox = box{<-3,-2,-1>,<3,2,1>}
will rotate about its center as one would usually expect.

Whereas,
This box: #declare HardRotBox = box{<0,0,0>,<6,4,2>}
is the same size and shape as the one above, but will
rotate about its lower left front corner, which is
USUALLY not what one would want.

-Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.