they way I have done it: check out my first project at

http://www.vr-fx.com/3d_work/Terraforming/show.html

I show off too much. thats why its called show.html




I catch the KeyPressed event and do the following:

        void evKeyPressed (KeyEvent ev)
                {
                switch( ev.getKeyCode() ) {
                        case KeyEvent.VK_HOME:
                                m_angle = 0.0;
                                m_vTranslate.set(0, 0.5f, 0);
                                break;

                        case KeyEvent.VK_RIGHT:
                                m_angle -= m_rotation;
                                break;

                        case KeyEvent.VK_UP:
                                m_vTranslate.x -=
Math.sin(m_angle)*m_translation;
                                m_vTranslate.z -=
Math.cos(m_angle)*m_translation;
                                break;

                        case KeyEvent.VK_LEFT:
                                m_angle += m_rotation;
                                break;

                        case KeyEvent.VK_DOWN:
                                m_vTranslate.x +=
Math.sin(m_angle)*m_translation;
                                m_vTranslate.z +=
Math.cos(m_angle)*m_translation;
                                break;

                        default: return;

                }

                //m_acontext.showStatus(m_vTranslate.x +",
"+m_vTranslate.z);
                m_t3d.rotY( m_angle );
                m_t3d.setTranslation( m_vTranslate );
                m_targetTG.setTransform( m_t3d );

                }



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-----Original Message-----
From: Augustin Gjini [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 12, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] ViewingPlatform...


        I would like to simply move the viewing platform (a translation
on Y for example..) without use a Navigator (ex : KeyNavigator)...
        Actually I use this method to define my Viewing platform :
                        getViewingPlatform().setNominalViewingTransform();

Is anybody can send me a piece of code explain how to do this????

                Thanks in advance...

===========================================================================
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".

Reply via email to