Hi Andy, You need to restart your Alpha object after it has finished. You can do this by calling "alpha.setStartTime( System.currentTimeMillis() );"
Hope that helps! -Roy Andreas Bauer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I am using an PositionPathInterpolator to move a unit around. Is there an easy > way to use reuse the interpolator after he has once finished? > The problem I see is that the interpolator isn't wakedup anymore after the > alpha object has finished. Unfortunatly, the wakeup criterion can only be set > from processSitimuli and initialize. > Simply calling initialize doesn't work, and letting the Alpha stay at 1 for > ever, so the interpolator doesn't end is I think a little bit inperformant. > > The idea I have is to subclass the interpolator and add a > WakeUpOnBehaviourPost of another behavior. When the interpolator must be > reused, the secound Behavior would post the event, the interpolator would > wake up. Would this work or is there a simpler solution. I > It would be nice to have a reinitialze method in behavior. > > Greeting, > > - -- > Andreas Bauer > [EMAIL PROTECTED] > > May the penguin be with you! > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9dlbnaHjQVZOZP3YRAiYTAKCzS8mZFzL7j/7IDQ5X/9Hywh+4xgCgmsPd > axu2iHDRHfqMEF93Nlrto1k= > =x6rO > -----END PGP SIGNATURE----- > > =========================================================================== > 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".
