|
![](/i/fill.gif) |
In article <3d9d8860@news.povray.org>, Micha Riser <mri### [at] gmx net>
wrote:
> I have digged out my sliding macro and adapted it to run with POV-Ray 3.5.
> You can find the source and some examples in p.b.s-f. There I use trace to
> place the slider on the surface again after it has moved. You could use a
> similar thing in your case: trace against the imaginary sphere that limits
> the orbit of the particle.
Well, you could also have normalized the point and multiplied it by the
length of the string, with the same effect and no need for tracing
against a sphere.
The problem with these methods is that the particle doesn't travel as
far when projected onto the sphere like this, so it will constantly be
slowing down. Computing the angle it would travel if it went the same
distance along the sphere surface and rotating by that amount avoids
this, and you are left with mainly precision errors to worry about.
(though the step size still matters for shifts in direction)
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |