about cameramaya

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
bloodbao
Posts: 15
Joined: Fri Aug 31, 2007 1:12 pm

about cameramaya

Post by bloodbao »

i first use it!

Code: Select all

camera[0] = smgr->addCameraSceneNodeMaya();
 camera[0]->setPosition(core::vector3df(0,200,200));
camera[0]->setTarget(core::vector3df(0,0,0));

Code: Select all

					ICameraSceneNode* camera=smgr->getActiveCamera();

					vector3df totargetvector = camera->getPosition() - camera->getTarget(); 
					totargetvector.normalize(); 
					vector3df crossvector = totargetvector.crossProduct(camera->getUpVector()); 
					vector3df strafevector = crossvector.normalize(); 

					//camera->setPosition(camera->getPosition() - strafevector * translateSpeed); 
					camera->setTarget(camera->getTarget() - strafevector * translateSpeed); 
					camera->updateAbsolutePosition();
i try to move maya camera,it dosen't work?
who can help me,thanks!
Post Reply