Hi,
This is a bug v1.2 (ID 4340882). Currently v1.2
rely user to invoke wakeupOn() in processStimulus()
to add back wakeupOnElapsedTime condition after
it is expired. If the wakeupOnElapsedTime condition
expires and processStimulus() can't invoke in
case behavior is disabled, the condition will
never activate again. A workaround is to detach
the behavior and add it back instead of use
behavior enable/disable. This will be fixed
in next release.
Thanks for your bug report.
- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.
>MIME-Version: 1.0
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>Importance: Normal
>Date: Wed, 24 May 2000 17:36:14 -0700
>From: "J. Lee Dixon" <[EMAIL PROTECTED]>
>Subject: [JAVA3D] WakeupOnElapsedTime problem
>To: [EMAIL PROTECTED]
>
>I'm having a problem with the behaviors that use the WakeupOnElapsedTime
>criteria. They start off running fine, but if I merely
>behavior.setEnable(false) and then behavior.setEnable(true) later on, the
>behavior is never woken up again. Am I doing something wrong?
>
>Here's some sample code. The timer behavior prints "I'm Awake" once a
>second. Pressing the button disables the timer behavior and the rotation of
>the square on the screen. Pressing the button again should enable both
>behaviors, but for some reason only the rotation behavior is enabled.
>
>(I'm using JDK 1.3 Java3D 1.2 FCS)
>
===========================================================================
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".