POV-Ray : Newsgroups : povray.general : Rolling balls, appropriate rotation equation. : Re: Rolling balls, appropriate rotation equation. Server Time
9 Aug 2024 13:19:16 EDT (-0400)
  Re: Rolling balls, appropriate rotation equation.  
From: Jerry
Date: 14 Jul 2000 18:10:06
Message: <jerry-21BAD5.15100514072000@news.povray.org>
In article <396F6E26.A9FFDE42@my-dejanews.com>, 
gre### [at] my-dejanewscom wrote:
>I've tried all kinds of tricks for 3D, and nothing looks right. The
>problem is with a surface with a y component (rolling hills). If it
>drops a great amount in y, it should roll more, if it drops less in y,
>it rolls less.

What you want is not how far it drops in y, but how far it rolls. That 
is, if it is rolling on a straight line, what is the length of that 
line? If it is  rolling on a curve, what is the length of that curve?

If the curves aren't simple circular curves (for which I think there is 
a function; perhaps the arcsin/arccos/arctan functions?), but you know 
the points anywhere on the surface (which you must, since you're putting 
the balls there?), you could approximate small triangles to get an 
approximation of the distance rolled.

I wrote something about trig functions in POV 
(http://www.hoboes.com/html/NetLife/POV/Trig/) but you can probably use 
the vector functions to do what you want.

Jerry


Post a reply to this message

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