|
 |
kurtz le pirate <kur### [at] free fr> wrote:
> On 23/07/2026 06:30, Sir wrote:
> >
> > Hello POV-Ray Users!
> >
> > So, i was rendering an animation of a metronome whose pendulum swings back and
> > forth between a specific angle and its negative.
> >
>
> Hello 'Sir Francisco',
>
> I think you're making things harder on yourself....
>
>
> For exemple :
>
> // 50 degrees -> +/- 25 deg or something else, of course
> #declare Amplitude = 50;
> #declare HalfAmplitude = Amplitude*0.50;
>
>
> Object to animate is "Object"
>
> object {
> Object
> rotate sin(clock*tau)*HalfAmplitude*z
> }
>
> 'clock' from 0.0 to 1.0
>
>
> In this exemple, oscillations is around z-axis.
>
> I hope this helps...
>
>
>
>
> --
> kurtz le pirate
> compagnie de la banquise
Thanks! i tried it and it worked!
If you don't mind, could you explain to me how it works?
- S I R ?
Post a reply to this message
|
 |