| 469 | } |
| 470 | |
| 471 | void Logic::CameraController::updateKeyedAnimationCamera(float deltaTime) { |
| 472 | if (m_Keyframes.empty() && m_KeyframeActive == -1.0f) { |
| 473 | return; |
| 474 | } |
| 475 | |
| 476 | std::pair<Math::float3, Math::float3> poslookat = updateKeyframedPlay(deltaTime); |
| 477 | m_ViewMatrix = Math::Matrix::CreateLookAt( |
| 478 | poslookat.first, poslookat.first + poslookat.second, Math::float3(0, 1, 0)); |
| 479 | m_ViewMatrix = m_ViewMatrix.Invert(); |
| 480 | } |
| 481 | |
| 482 | void Logic::CameraController::onUpdateExplicit(float deltaTime) |
| 483 | { |