//I initialized Camera
Camera = irrScene->addCameraSceneNode(0,vector3df(0,0,0),vector3df(0,0,0),-1);
//later I've set it up
camerapos= vector3df(0,1.5,-5);
Camera->setParent(BodyNode);
Camera->setPosition( camerapos );
Camera->setRotation(vector3df(0,0,0) );
//and it points global(0,0,0) all the time not relatively to parent sphere.
//so on every frame I tried to point the camera to look at the point where the sphere looks
camerapos = conv::btV2irrV( trans.getBasis()[2]*57.2957795);
Camera->setRotation(camerapos);//camerapos is good and it differs at every frame (from circa -50 to 50)
vector3df v = Camera->getRotation();
//but "v" is messed up.. i get smtg like 1.000e+008 etc
any clue
Last edited by Apoptyzm on Mon Oct 20, 2008 3:19 pm, edited 1 time in total.