I was trying to get a weapon of mine to move up and down alittle as i walked around, what i did was made a if statement, that get the input of my keys in my class and also a int up that equaled 0, but anyway as long as i am moving it should go up and down, but it doesn't
So if someone could see if they could solve the problem many thanks .
First of all you arent supposed to ask questions in this forum. Second, he means bobble head effect. Just do it by altering some value... cant put my finger on it now tho....
Found it. You make a camera as you normally do, but add a keymap and number of keys to the function.
Ex. sm->addCameraSceneNodeFPS(0, rotSpeed, speed, identifer, keymap, keys);
And for keymap you make a keymap of SKeyMap type in an array of how many keys you need, then fill out the action and keycode for each key.
Ex.
I'm sorry I didn't realize what you were asking. So you want a bobbling effect for the camera.
I'm not sure, but maybe where the Action is you can add code there, probably seperated by a |. Or that may be just for the camera movement, I'm not sure.