Increasing camera moving forward speed

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
grantkrieger
Posts: 25
Joined: Fri Jul 27, 2007 10:02 am

Increasing camera moving forward speed

Post by grantkrieger »

Hello,

How do I increase the camera moving speed once the camera has already been created.

I would like to do this when a key is pressed

Thanks
sader
Posts: 28
Joined: Sat Sep 29, 2007 1:38 pm

Post by sader »

if you ahve created your camera with this function addCameraSceneNodeFPS()
then speed is third parameter
addCameraSceneNodeFPS
(
ISceneNode* parent = 0,
f32 rotateSpeed = 100.0f,
f32 moveSpeed = 500.0f, <=movement speed
s32 id=-1,
SKeyMap* keyMapArray=0,
s32 keyMapSize=0,
bool noVerticalMovement=false,
f32 jumpSpeed = 0.f
)
Cardinal4
Posts: 97
Joined: Sun Jun 11, 2006 1:20 am
Location: SG
Contact:

Post by Cardinal4 »

@sader:
He wants to have it done after the camera has been created.

@grantkrieger:
The better way is still to shift it's position manually per frame, especially in some cases if you're doing something like acceleration where, if there was [is there?] code to change the camera's speed, you have to change the camera speed constantly, which just doesn't feel right syntactically. It would be easier to just change the position.
Sketches of a rambling mind
Still a long way on learning Irrlicht...
Post Reply