When i move the camera the bsp world is shaking. Have you got an explication for this strange effect ?
This is my code :
Code: Select all
core::vector3df cam_pos = camera->getPosition();
core::vector3df cam_tar_pos = camera->getTarget();
cam_pos.X -= 1.0f ;
cam_pos.Z -= 1.0f;
cam_tar_pos.X = 1.0f ;
cam_tar_pos.Z = 1.0f;
camera->setPosition(cam_pos);
camera->setTarget(cam_tar_pos);