Add movement speed modifier

This commit is contained in:
Georg Hagen
2024-10-11 11:53:10 +02:00
parent 5873601a02
commit 0ff4d391c2
2 changed files with 5 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ namespace OpenVulkano
//vec = Math::Utils::normalize(vec);
}
const float timeScale = CURRENT_FRAME.frameTime; //TODO
vec = vec * timeScale * 3.0f; // scale vector
vec = vec * timeScale * m_movementSpeedModifier; // scale vector
vec = GetCamera()->GetRotationMatrix() * Math::Vector3f(vec);
const Math::Vector4f_SIMD movement(vec, 0);
m_framePosition += movement;