| 24 | } |
| 25 | |
| 26 | void PerspectiveCamera::SetProjectionMatrix(const Maths::Matrix4& projection) { |
| 27 | Camera::SetProjectionMatrix(projection); |
| 28 | UpdateCoordinateVectors(); |
| 29 | UpdateViewMatrix(); |
| 30 | } |
| 31 | |
| 32 | void PerspectiveCamera::UpdateCoordinateVectors() { |
| 33 | m_forward = Maths::normalize(m_position - m_target); |
no outgoing calls
no test coverage detected