Hi Fergus,

Create a behavior that wakes up on WakeupOnBehaviorPost. Then whenever your
program gets a request from your stream to update the scene graph, wake up
your Behavior by calling its postID() method. Your Behavior will wake up and
execute processStimulus(). If you define your Behavior's processStimulus to
call the run method of a Runnable that you passed it when you called postID,
then your Behavior can be told to do anything you choose at anytime.

Hope that's clear.

Raffi



-----Original Message-----
From: Fergus Murray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:05 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Controlling unpredictable motion


Perhaps I'm just being dense, but I get the impression that Java3D
Behaviors and Interpolators are good for doing things which you know the
'shape' of in advance, and/or things which are triggered by user
interaction, but not so great if you want to do something like read a
stream from a network and set transformations based on that, or control an
object procedurally.  Where should I start with something like that?
Should I just put setTranslation calls (applied to the appropriate
branches) into my run() method, or what?  Do I need to define behaviours
first?   Am I being terribly dense?

Any hints gratefully received...

Thanks

 - Fergus C. Murray (feeling slightly confused)

http://privatewww.essex.ac.uk/~fcmurr/3D.htm

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

Reply via email to