Improve input time scale handling
This commit is contained in:
@@ -61,7 +61,7 @@ namespace OpenVulkano
|
||||
Math::Vector3f_SIMD vec(input->GetAxis(m_actionSide), input->GetAxis(m_actionUp), -input->GetAxis(m_actionForward));
|
||||
if (vec != Math::Vector3f_SIMD (0))
|
||||
{
|
||||
const float timeScale = CURRENT_FRAME.frameTime; //TODO
|
||||
const float timeScale = input->GetTimeScale(); //TODO
|
||||
vec = vec * timeScale * m_movementSpeedModifier; // scale vector
|
||||
vec = GetCamera()->GetRotationMatrix() * Math::Vector3f(vec);
|
||||
const Math::Vector4f_SIMD movement(vec, 0);
|
||||
|
||||
Reference in New Issue
Block a user