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

Method storeKeyframe

src/logic/CameraController.cpp:585–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void Logic::CameraController::storeKeyframe(unsigned idx)
586{
587 Keyframe f;
588 f.position = m_ViewMatrix.Invert().Translation();
589 f.lookat = -1.0f * m_ViewMatrix.Invert().Forward();
590
591 if(idx >= m_Keyframes.size())
592 m_Keyframes.resize(idx + 1, f);
593
594 m_Keyframes[idx] = f;
595}
596
597void Logic::CameraController::clearKeyframes()
598{

Callers

nothing calls this directly

Calls 4

TranslationMethod · 0.80
InvertMethod · 0.80
ForwardMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected