How to control a FPS caracter with its camera

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
st0ph
Posts: 27
Joined: Sat Aug 04, 2012 3:00 pm

How to control a FPS caracter with its camera

Post by st0ph »

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.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to control a FPS caracter with its camera

Post by CuteAlien »

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
Post Reply