POV-Ray : Newsgroups : povray.newusers : clock and declared variables : Re: clock and declared variables Server Time
28 Nov 2024 19:42:02 EST (-0500)
  Re: clock and declared variables  
From: Steve
Date: 2 Mar 2000 20:19:24
Message: <slrn8bu3op.iv.sjlen@zero-pps.localdomain>
On Thu, 02 Mar 2000 18:55:58 -0500, CMcCabe wrote:
>i was wondering if these two lines are feasible to move an object along
>the x-axis, i can't seem to find an example of how to translate an
>object along a linear path
>#declare XPos = clock*10;
>sphere { <XPos,0,0>, .5 }
>
>also, those lines should be the same as this one right?
>sphere { <clock*10,0,0>, .5 }
>

Yes this should work fine, but personally I'd prefer

sphere { <0,0,0>, .5 
         translate <clock*10,0,0> 
       }

This will move the sphere from <0,0,0> to <10,0,0>. 



-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 12:54am  up  1:07,  5 users,  load average: 1.18, 1.12, 1.03


Post a reply to this message

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