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
Increasing camera moving forward speed
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
)
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
)
@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.
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.