Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Behavior animation problem

843799Dec 16 2001 — edited Dec 17 2001
In my application, a WireFrame cube is animated along a path as defined by a curve.
A behavior is used to create the animation, using wakeUpOnElapsedFrames. The processStimulus looks up the point the cube should be at in a HashMap (using the frame number as the key), then draws the cube at this position.
When the curve defining the path is updated, the HashMap in the behavior is replaced and the processStimulus is run again (by waking it up with a postId)
However, when the animation is run with a new HashMap representing the curve, the curve is animated along the new path AND the old path.
Any idea why this could be?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 14 2002
Added on Dec 16 2001
1 comment
80 views