Question about controlling camera / movement

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
bgsteffens
Posts: 39
Joined: Wed Oct 04, 2006 8:00 am

Question about controlling camera / movement

Post by bgsteffens »

Is there a wrapper for the SKeyMap in Irrlicht.NET? I searched for 'SKeyMap' in the documentation and found nothing, but perhaps it is wrapped under another name or a similar functionality can be implemented in another manner?

-OR-

Should I just write my own code within the main game loop to retrieve user input and translate camera matrices?

Thanks in advance! :)
kumori
Posts: 1
Joined: Tue Sep 26, 2006 7:41 pm

Post by kumori »

I had the same problem and solved it by using the "Irrlicht .NET CP"-wrapper instead. Probably not the solution you were looking for though...

http://irrlichtnetcp.sourceforge.net

Code: Select all

            KeyMap myMap = new KeyMap();
            myMap.AssignAction(KeyAction.MoveForward, KeyCode.Key_W);
            myMap.AssignAction(KeyAction.MoveBackward, KeyCode.Key_S);
            myMap.AssignAction(KeyAction.StrafeLeft, KeyCode.Key_A);
            myMap.AssignAction(KeyAction.StrafeRight, KeyCode.Key_D);

CameraSceneNode cam = device.SceneManager.AddCameraSceneNodeFPS(null, 200, 200, false, myMap);
Locked