ok, here's my problem:
i'm stuck trying to eliminate the restrictions on the up/down movement of the camera. in other words, i want the camera to rotate 360 degrees in every direction (in a space enviornment) ...any help is appreciated
camera issue
I am assuming you want the camera to not respond to a the up/down arrows, then you can add something like this might work:
if (camera){
if(event.EventType == irr::EET_KEY_INPUT_EVENT)
{
switch(event.KeyInput.Key){
case KEY_UP:
case KEY_DOWN:
return false;
}
}
return camera->OnEvent(event);
}
OR if you want to stop all the keys from affecting the camera including right + left then this might work:
if (camera){
if(event.EventType == irr::EET_KEY_INPUT_EVENT)
return false;
return camera->OnEvent(event);
}
Hopefully these work.
if (camera){
if(event.EventType == irr::EET_KEY_INPUT_EVENT)
{
switch(event.KeyInput.Key){
case KEY_UP:
case KEY_DOWN:
return false;
}
}
return camera->OnEvent(event);
}
OR if you want to stop all the keys from affecting the camera including right + left then this might work:
if (camera){
if(event.EventType == irr::EET_KEY_INPUT_EVENT)
return false;
return camera->OnEvent(event);
}
Hopefully these work.
no, actually i want the camera to move on the Y (and X) axis without restrictions, which are set in the CCameraFPSSceneNode.cpp in the irrlicht source. i have found the problem and i'll post a solution as soon as i get it working.I am assuming you want the camera to not respond to a the up/down arrows