Hi, > >Do you have any v1.3 guidance on the best way to enable/disable >Behaviors. Is it expensive to add / detach? I forget whether >Switch nodes work.
> >Right now, I keep flags and check them at the tops of the >processStimulus() or fiddle with the wakeups, and that's fine >for my little models, but what's recommended for the general >case? > The best way is to use Behavior public void setEnable(boolean state) with a combination of v1.3 new API Alpha pause()/resume() Another way is use behavior node under Switch node which should work fine. But I think it is a bit slower than using setEnable(). Using add/detach is definitely more expensive. Thanks. - Kelvin ------------------ Java 3D Team Sun Microsystems Inc. =========================================================================== 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".
