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
Post a reply to this message
Attachments:
Download 'metronome.mp4.dat' (45 KB)
|