In my game, I control a caracter "Jake" (move, jump, ...) which I modeled and animated in blender and export it as a .b3d file.
I used an IEventReceiver to detect the keys pressed to move jake and its camera and to play the right animation for that movement. But the movement looks very bad and it's not as fluid as I wanted.
Does anyone have an idea about what is the best way to do that and if there is any code snippets that I can use.
thanks in advance.
How to control a FPS caracter with its camera
Re: How to control a FPS caracter with its camera
You have to be more detailed than saying "it looks bad" to get any help. We don't see what's going on at your screen, so we can't really know what the problem is. When you say the movement looks bad it could be a bad animation, it could be a bug in export/import it could be an animation problem in Irrlicht or maybe it hasn't at all to do with the animation but it's the way it's used (for example you have moonwalking if your animation speed does not fit the movement speed of the object).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm