Code: Select all
//xCamDist X offset
//zCamDist Z offset
f32 zCamDist = (tan((lookDownCamera->getFOV()/2.0))*(cameraDistanceOld - leftCameraDistance));
f32 xCamDist = zCamDist * lookDownCamera->getAspectRatio() ;
cameraXPos -= xCamDist;
cameraZPos += zCamDist;
lookDownCamera->setPosition(core::vector3df(cameraXPos,leftCameraDistance,cameraZPos));
lookDownCamera->setTarget(core::vector3df(cameraXPos,0,cameraZPos));
http://pastebin.com/m566aee66
can somebody give me some advise??