CameraSceneNodeFPS

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

CameraSceneNodeFPS

Post by Guest »

How to set speed parameter in CameraSceneNodeFPS(Press shift to sprint mode) :?: :?: :?:
etal2009
Posts: 16
Joined: Wed Mar 10, 2010 2:26 pm

Post by etal2009 »

Bump. I would likewise like to learn how to do this; if not with CameraSceneNodeFPS, then maybe with the CSceneNodeCamera.
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

I'd try getting the animator of the camera using getAnimators(), reinterpret casting the first animator pointer to a ISceneNodeAnimatorCameraFPS pointer, and calling setMoveSpeed().
etal2009
Posts: 16
Joined: Wed Mar 10, 2010 2:26 pm

Post by etal2009 »

I found another topic that solved this:

http://irrlicht.sourceforge.net/phpBB2/ ... tmovespeed
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Post by Memorial76 »

Really interesting but quite tricky...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can get the animator directly after creating the camera. There's only one such animator then, so no need to iterate over all of them.
Post Reply