While trying to use the RotPosPathInterpolator class to change the position
of my ViewPlatform TransformGroup, I ran into a couple of problems that I
thought someone might be able to help with:
In the class where I create my View and ViewPlatform, I extend
RotPosPathInterpolator. I have added WakeupOnAWTEvent WakeupCriterion, and,
because I want to interpret MouseEvents (position, etc), I override
processStimulus.
In processStimulus, I either change the Point3f at knot index 1, or I change
the Quaternion at index 1, based on the MouseEvent fired. I am currently
only using two knots.
When I run the application, the behaviors activate on Mouse input, but the
movement/rotation is not smooth, but rather one big jump from the current
position to the next one. I am already resetting the alpha with
alpha.setStartTime(System.currentTimeMillis());
before I call super.processStimulus(enumeration). Do I need to reset the
behavior somehow? Help!
Thanks,
Nick Leidenfrost
===========================================================================
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".