camera issue

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
rom++
Posts: 5
Joined: Fri Sep 26, 2003 12:57 am
Location: the 7th level
Contact:

camera issue

Post by rom++ »

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

Image
rom++
Posts: 5
Joined: Fri Sep 26, 2003 12:57 am
Location: the 7th level
Contact:

Post by rom++ »

bump^^
Sfin

Post by Sfin »

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.
rom++
Posts: 5
Joined: Fri Sep 26, 2003 12:57 am
Location: the 7th level
Contact:

Post by rom++ »

I am assuming you want the camera to not respond to a the up/down arrows
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.
Sfin
Posts: 13
Joined: Wed Oct 15, 2003 9:13 pm

Post by Sfin »

Yeah reading your post now, I just realized you said "eliminate restrictions", I didn't notice the eliminate till now. Sorry I couldn't be of help.
Post Reply