Hi!
To continue a animation where it stopped, you have to set a new start time
in the alpha object associated with your interpolator. Because the
alpha-value calculation uses the current time the "jumps" you described
occur.
You can for example store the current time when you stop the interpolator.
When you want to resume the interpolater you have to calculate the time
difference between "now" and the stopping time. Now you only have to add
this difference to the previous start time of the alpha object and set the
modified start time. Then the animation should continue where it stopped.
Sincerely, yours
Michael Lorenz.
([EMAIL PROTECTED])
Alex Terrazas wrote
> Hi-
>
> I am trying to start and stop a rotation based on the pressing of a
> button (I get this through serialEventListener). I am using the
> setEnable(true/false) method to stop and start the interpolator however,
> while the object starts and stops rotating, the interpolator keeps going
such
> that the next time I hit start, it jumps to where the interpolator is and
not
> where the user stopped.
>
> Should I use the wakeupOn and processStimulus methods to avoid this
> problem? If so, are there any examples?
>
> Graci-
>
> Alex Terrazas
>
>
===========================================================================
> 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".
>
===========================================================================
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".