Fix jump when switching from pan to two finger pan
This commit is contained in:
@@ -61,10 +61,6 @@ namespace OpenVulkano
|
||||
Math::Vector3f_SIMD vec(input->GetAxis(m_actionSide), input->GetAxis(m_actionUp), -input->GetAxis(m_actionForward));
|
||||
if (vec != Math::Vector3f_SIMD (0))
|
||||
{
|
||||
if (Math::Utils::length2(vec) > 1.0f)
|
||||
{ //TODO only do this for keyboards
|
||||
//vec = Math::Utils::normalize(vec);
|
||||
}
|
||||
const float timeScale = CURRENT_FRAME.frameTime; //TODO
|
||||
vec = vec * timeScale * m_movementSpeedModifier; // scale vector
|
||||
vec = GetCamera()->GetRotationMatrix() * Math::Vector3f(vec);
|
||||
|
||||
Reference in New Issue
Block a user