Hi Zak,

> What is this argument mean in the class RotationPathInterpotator?
>
> >>      knots - an array of knot values that specify interpolation points   <<

It's just an array of floats from 0.0f to 1.0f, same length as the
'quats' array parameter. Consider them 'keys' for the quats array.

As the alpha object produces values from 0.0 to 1.0 the knots
values tell, which 2 quats will be used for interpolating the
rotation angle.

Say, you have 3 quats with rotation 0 degrees, 45 degrees and 90
degrees. When you use a knots array of 0.0f, 0.5f and 1.0f with it
you get a constant rotation from 0 to 90 degrees.

If you instead use knots 0.0f, 0.9f and 1.0f with the same quats
you get a slow rotation from 0 to 45 degrees over 9/10 of the
alpha time and in the remaining 1/10 of the time a fast rotation
from 45 to 90 degrees.

regards

Georg
 ___   ___
| + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]           +49 (40) 23 53 27 10

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to