MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / updateKeyedAnimationCamera

Method updateKeyedAnimationCamera

src/logic/CameraController.cpp:471–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void 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
482void Logic::CameraController::onUpdateExplicit(float deltaTime)
483{

Callers

nothing calls this directly

Calls 2

InvertMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected