| 75 | } |
| 76 | |
| 77 | void Camera::updateInternals() |
| 78 | { |
| 79 | if(mDirtyProj) |
| 80 | { |
| 81 | mDirtyProj = false; |
| 82 | mProjMatrix = RendererProjection(degtorad(mFOV), mViewport.computeRatio(), mNearPlane, mFarPlane); |
| 83 | } |
| 84 | if(mDirtyView) |
| 85 | { |
| 86 | mDirtyView = false; |
| 87 | |
| 88 | mViewMatrix.q = PxQuat(EulerToMat33(mRot)); |
| 89 | mViewMatrix.p = mPos; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | PxVec3 Camera::getViewDir() const |
| 94 | { |
no test coverage detected