POV-Ray : Newsgroups : povray.animations : Rotating while moving in a tautochrone :| : Re: Rotating while moving in a tautochrone :| Server Time
28 Apr 2024 01:59:23 EDT (-0400)
  Re: Rotating while moving in a tautochrone :|  
From: MessyBlob
Date: 11 Apr 2009 18:35:00
Message: <web.49e119f0421ca027addfbead0@news.povray.org>
"Pov-Ray Dummy" <nomail@nomail> wrote:
> [...] I would like them to rotate to make them appear to
> roll instead of just 'sliding'.

A broad approximation would be to find the distance that the centre of the ball
has moved since the previous frame, and rotate the ball (in degrees) by "z *
360 * distance / radius". This would slip slightly if the curve was tight, but
the calculation is easy to understand and do on a 2D curve when you know the
animation path. If the can't create the path directly, you'd need to make an
'inset path' from the curved surface, and make that your animation path.

Then there's a physics-based approach, which would be a lot more accurate. I
don't really have the skill nor patience to describe that here :o)


Post a reply to this message

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