Re: [osg-users] KeyboardHandler - Moving an Object Forward

2012-01-25 Thread Anthony Face
Hi, you forget this try: Code: class myKeyboardEventHandler : public osgGA::GUIEventHandler { public: myKeyboardEventHandler(tankInputDeviceStateType* tids) :tankInputDeviceState(tids) ; { } virtual bool handle(const osgGA::GUIEventAdapter

[osg-users] KeyboardHandler - Moving an Object Forward

2012-01-24 Thread Pedro Ribeiro
Hi everyone, i'm newbie in osg, trying to learn from the osg tutorials. Now i'm trying to implement tutorial 9.1 (Basic Keyboard Input) that allow the tank to move forward, started with Tutorial 9 from NPS that allow a tank to rotate his gun. I tried to follow the tutorial step by step,i t

Re: [osg-users] KeyboardHandler - Moving an Object Forward

2012-01-24 Thread Ulrich Hertlein
Hi Pedro, On 24/01/12 12:36 , Pedro Ribeiro wrote: Hi everyone, i'm newbie in osg, trying to learn from the osg tutorials. Now i'm trying to implement tutorial 9.1 (Basic Keyboard Input) that allow the tank to move forward, started with Tutorial 9 from NPS that allow a tank to rotate his