Make the camera speed slower

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
omg_fail
Posts: 83
Joined: Wed Apr 20, 2011 1:14 pm
Location: Germany/Bavaria
Contact:

Make the camera speed slower

Post by omg_fail »

Hello guys.
In my scene i want to slow down my camera speed but i dont have any idea how !

Code: Select all

camera->setPosition(core::vector3df(0, 0, 0));
This is the code i using for my camera.I also have a collision in my scene which work with this camera.

But i only see 0,0,0 and they are used to set the position

please help
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Assuming you're using the FPS camera, look here:
http://irrlicht.sourceforge.net/docu/cl ... 80f2cdddbb

I believe this is also mentioned somewhere in the tutorials
Please try to refer to these and the API as much as possible
Dragfang
Posts: 21
Joined: Tue Mar 02, 2010 4:08 pm

Post by Dragfang »

When you create the camera like this:

Code: Select all

ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 1.0f);
The third parameter is the movementspeed, in this example 1.0f. If I want the camera to move slower I can change it to 0.5f, and if I want it to move faster I can change it to 2.0f for example.
Post Reply