Disable camera movement

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
WWW
Posts: 26
Joined: Thu Oct 04, 2007 1:41 pm

Disable camera movement

Post by WWW »

HI,
I have CameraSceneNodeFPS and i want to disable the cursor key movement,how can i do that? :roll:
Thanks.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

There's a function to disable user input on a camera, something you could have found if you checked the API ;)

Either that or you can switch the active camera to a normal ICameraSceneNode and give it the same position and target as the FPS cam and it will seem as though the camera has just stopped accepting input.
Image Image Image
WWW
Posts: 26
Joined: Thu Oct 04, 2007 1:41 pm

Post by WWW »

Thanks JP for your fast reply.
There's a function to disable user input on a camera, something you could have found if you checked the API
I know ( setInputReceiverEnabled) but it's disable the camera from being controled with mouse too, and i want to disable just the cursor keys. :cry:
Sorry for my bad english.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Ahh yes i see, do you want to completely remove the key movement all the time or is it just for a moment?

You can specify an SKeyMap for the camera to run off which means you can change what the keys do so maybe you can disable via that.
Image Image Image
WWW
Posts: 26
Joined: Thu Oct 04, 2007 1:41 pm

Post by WWW »

Yes I want to disable the key movement all the time.
Thanks again for your help.
Post Reply