Hi all...

Is there any way to call wakeupOn from in the middle of a behavior?

I have a behavior that moves a TransformGroup (viewGroup) and another
(shapeGroup).
It also uses WakeupOnCollisionEntry/Exit with a Shape under shapeGroup.
(shapeGroup is also under viewGroup)

The processStimulus method moves shapeGroup when the user hits a directional
button.  Then, it needs to check if the shape under it collides with
another.  If there is no collision, it moves the shape back, and moves
viewGroup forward.

At least that's what I want.

I call WakeupOn() with the collision behaviors before I check for
collisions, but it causes processStimulus to be called twice (then next time
I press a key, it goes 4 times, then 8...).

If I don't call wakeupOn(), the collision doesn't update. If I do, it takes
minutes to move one frame.

There must be an easy way to do this...

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to