POV-Ray : Newsgroups : povray.animations : translation outside of declaration : Re: translation outside of declaration Server Time
8 Jul 2024 16:13:56 EDT (-0400)
  Re: translation outside of declaration  
From: Slime
Date: 21 Oct 2002 15:52:44
Message: <3db45b0c$1@news.povray.org>
> Does anyone know how to translate an object *outside* of the
> declaration/creation of that object? I have an object that is moved in
> union with others, but *after* that, I need to move the object
> individually. It would not be an issue, but the union is animated, so I
> need to correct the object's position each frame. Thanks.


Order doesn't matter with translations. So translate it *before* translating
the union:

union {
object {obj}
object {obj}
object {obj translate <a,b,c>}
object {obj}
object {obj}
translate <d,e,f>
}

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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