Add movement speed modifier
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user