POV-Ray : Newsgroups : povray.windows : changing center & batch : Re: changing center & batch Server Time
2 Jul 2024 23:07:20 EDT (-0400)
  Re: changing center & batch  
From: Andrew
Date: 12 Mar 2003 12:37:47
Message: <3e6f706b$1@news.povray.org>
> 1-can I change the center(pivot) of an object?

Presumably you mean the centre for rotations?  If so, it's worth
pointing out that all rotations are performed around <0,0,0>.  So, if
you want to rotate around the corner of a cube (for example), simply
make sure that the cube's corner is at <0,0,0> before applying the
rotation.

However, if you look into the "transforms.inc" file and its contents,
you'll find some useful macros such as Rotate_Around_Trans, which will
rotate an object around whatever point you specify.


Post a reply to this message

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