Sam Hocking wrote: > I'm wondering if any of you have developed / seen any keyboard and mouse > behaviours that introduce an inertia-type effect. I'm trying to achieve an > effect i guess, similar to the Blaxxun Contact VRML plugin. i.e. movement > decays to a stationary position rather than abruptly stops dead!
Yes, I have added inertia in my MythLookBehaviour. http://pgts2002.eti.pg.gda.pl/~abies/j3d/MythLookBehavior.java Trick is quite simple - keys instead of modyfing position, modify only speed. If key is not pressed, speed decreases for given axis. Separate routine, running per-frame, updates speeds which in turn give real position. Artur =========================================================================== 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".