camera manipulation
Posted: Wed May 11, 2005 10:15 am
I'm trying to be able to get the angle/rotation/position of the camera and set it. I looked through some of the api, and I think i might be misusing the functions. here's an example of what I'm doing:
camera = smgr->addCameraSceneNodeMaya();
vector3df bleh;
bleh.X = 0;
bleh.Y = 0;
bleh.Z = 0;
camera->setRotation(bleh) ;
camera->setPosition(bleh) ;
when I run the program, it doesnt seem to do anything, no matter where I move the code around to. I can still rotate, zoom, translate, etc... What am I doing wrong?
camera = smgr->addCameraSceneNodeMaya();
vector3df bleh;
bleh.X = 0;
bleh.Y = 0;
bleh.Z = 0;
camera->setRotation(bleh) ;
camera->setPosition(bleh) ;
when I run the program, it doesnt seem to do anything, no matter where I move the code around to. I can still rotate, zoom, translate, etc... What am I doing wrong?