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);
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace OpenVulkano
|
||||
vec = Math::Utils::normalize(vec);
|
||||
}
|
||||
|
||||
float timeScale = 3 * CURRENT_FRAME.frameTime; //TODO
|
||||
float timeScale = 3 * input->GetTimeScale(); //TODO
|
||||
vec = vec * timeScale * 3.0f; // scale vector
|
||||
if (input->GetButton(m_actionBoost))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user