Movement is choppy

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
forrestcupp
Posts: 5
Joined: Fri Nov 03, 2006 8:16 pm

Movement is choppy

Post by forrestcupp »

I am new to Irrlicht. I am using a FPS Camera to move around a quake level. All I want to do is change the input to use WSAD instead of the cursor keys. So I set up my own EventReceiver to catch the input and make the camera move. I am using sin/cos functions to move the camera because the example I saw using Matrix4 to move forward caused it to strafe instead of go forward. My problem is that I had to have a speed multiplier of 5 to get it to move the same speed as what the preset cursor keys give me. When I have a speed multiplier of 5, it makes it extremely choppy, but using the cursor keys to move at the same speed is very smooth. Is there an easier way to move the cursor key events to WSAD and still get the smooth movement?

I also kind of wonder if DirectInput might work a little better.
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

Modify the Irrlicht source for the FPS camera. Rebuild Irrlicht and voila! :)
What does the debugger tell you? You did use the debugger, didn't you?
forrestcupp
Posts: 5
Joined: Fri Nov 03, 2006 8:16 pm

Post by forrestcupp »

That's really the easiest way?
forrestcupp
Posts: 5
Joined: Fri Nov 03, 2006 8:16 pm

Post by forrestcupp »

Tried DirectInput, and it isn't compatible with Irrlicht
Locked