From: "Liming CHEN" <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 9:26 AM


> Hi,
>
> I try to schedule a sequence of actions for an avatar. All the actions
> are Behaviour-based animations. The problem is how I can detect if the
> previous action finishs or not. I can use the time parameter  from
> Alphas to infer when an action action will complete. What I want to know
> is if there are other (better or efficient) methods for doing so.

I haven't done it this way, but here's how I would start.  If you're using
Interpolators, you can try subclassing the one you want, overriding its
processStimulus() method to add something like

super.processStimulus();
if  (this.getAlpha().finished())  { ... /* post an ID here or set a flag for
other Behaviors */

Cheers,
Fred

===========================================================================
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