Hi Mike, It's a little hard to say, but the first thing that comes to mind is the input. It sounds like when querying input your getting whether a key "was" pressed instead of if a key "is" currently pressed. Holding a key down in this case will trigger only a single event. What you may need is the ability to query the state of a key "is it down". If so, then move by one "step." In the input class we use here, we have two routines: isKeyDown(), isKeyToggled(). The first is the absolute state of the key and will return true as long as the key is down. The second acts as a toggle and will only fire one event.
Have a look at your input code and see if that's the culprit. Best, E. --- Eric Maslowski Research Computer Specialist University of Michigan 3D Lab email: [email protected]<mailto:[email protected]> From: Michael Gwynne [mailto:[email protected]] Sent: Monday, January 05, 2009 08:25 To: [email protected] Subject: [Opensg-users] Noobie stuck with navigation I am trying to load up the terrain.wrl and navigate around it using w,a,s,d. At first I modified the solar system example and tried to update the camera matrix when the keys are pressed. I managed to get as far as making the camera move once either forward or backwards, but it will not keep moving forwards or backwards. What am I doing wrong? I have also had a look at the Navigator and flyNavigator classes but I have no idea how to even start setting them up. Could someone help give me some advice on this. Or maybe direct me to a place with some sample code, an example or a sample project. Many thanks... Mike
------------------------------------------------------------------------------
_______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
