I am currently working on a project that requires an avatar to navigate with a mouse click. For example, when I click on a point in the screen, I would expect my avatar to be as though it is running towards that point. The view will be following the avatar, so the avatar will always appear in the middle of the screen.
I have tried to use PositionPathInterpolator to move the avatar from 2 points by retrieving the position of where the mouse was click and reassigning it to the PositionPathInterpolator using the setPathArray method. I wanted the avatar to move everytime the mouse was click, so I assigned an alpha with one loop count for every mouse click. It worked when the mouse was clicked once and my avatar seems to be moving in that direction, but when I click again, it just wouldn't move again. Is there any way I can reassign a new alpha to my Interpolator. Or was my approach into dealing with this navigation wrong and there is a better way to do it. And what would the performance like as I have heard that the Interpolator behavior will take up 100% CPU usage. Please advice, any help will be greatly appreciated. -Alex- _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com =========================================================================== 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".