Hi, You could do this to translate the x-component of the viewer:
//get transform3D of platform simpleUniverse.getViewingPlatform(). getViewPlatformTransform().getTransform(transform3D); transform3D.get(trans); //translate x-component trans.x += desiredDeltaX; //re-set transform3D.set(1.0, trans); simpleUniverse.getViewingPlatform(). getViewPlatformTransform().setTransform(transform3D); To control where the viewer can go, just use Behavior class to catch the keypresses of interest. From here, you will need to do an explicit check to test whether the current keypress would put the viewer out of bounds. If so, just ignore the keypress. Hope this helps. Brian -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] Behalf Of Snah Clouse Sent: Wednesday, February 23, 2005 12:25 AM To: JAVA3D-INTEREST@JAVA.SUN.COM Subject: [JAVA3D] keyNavigatorBehavior & view problem Hej again Does anyone know how to get viewers position in simpleUniverse and be able to modify just one of 3 dimensions? When im using keyNavigationBehavior, im setting bounds and if viewer gets out of that bounds the keyNav stops working. I need to make navigator to work in some space & not leting viewer get out of it (but not making keyNav stop working) Does anyone know how to make that? Snah =========================================================================== 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". =========================================================================== 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".