check if the object needs to be observed through its own camera...
| 368 | |
| 369 | // check if the object needs to be observed through its own camera... |
| 370 | void Camera::getCameraTransform(F32* pos, MatrixF* mat) |
| 371 | { |
| 372 | // The camera doesn't support a third person mode, |
| 373 | // so we want to override the default ShapeBase behavior. |
| 374 | ShapeBase * obj = dynamic_cast<ShapeBase*>(static_cast<SimObject*>(mOrbitObject)); |
| 375 | if(obj && static_cast<ShapeBaseData*>(obj->getDataBlock())->observeThroughObject) |
| 376 | obj->getCameraTransform(pos, mat); |
| 377 | else |
| 378 | getRenderEyeTransform(mat); |
| 379 | |
| 380 | // Apply Camera FX. |
| 381 | mat->mul( gCamFXMgr.getTrans() ); |
| 382 | } |
| 383 | |
| 384 | void Camera::getEyeCameraTransform(IDisplayDevice *displayDevice, U32 eyeId, MatrixF *outMat) |
| 385 | { |
no test coverage detected