Hi,
I need to simulate airport deployment with Java3D. In my program, each aircraft is a
thread, it has several differrent behaviors, such as landing, taking off, turn, etc.
Each behavior is a method in the aircraft class and is called by run method.
class aircraft extends BranchGroup implements Runnable{
...
public void run{
...
switch( aircraft_status){
case 0: landing(); break;
case 1: takingoff(); break;
case 2:...
...
}
}
public void landing(){..}
public void takingoff(){ ...}
...
}
I creat a PositionPathInterpolator for each behavior. In the RUN method, the status
of aircraft is checked continously, if the status is chaged, then cooresponding
animation is triggered.
The problem is that the loopcount of Alpha is set to 1, the aircraft only animate the
first time it's called, and when the same behavior is called for the second time and
later, the aircraft does not move at all!
I tried many ways, such create a new Alpha, create a new Interpolator, ...
all failed. I really have no idea now.
( it works well when the loopcount is set to -1, otherwise it does not work)
Is there anybody know how to trigger the animation and let the aircraft animation loop
only once each time it's triggered?
Thanx!
Mike
===========================================================================
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".