mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-23 12:03:56 -04:00
adjust rotational speed by delta time (#208)
This commit is contained in:
parent
613e5b8d9f
commit
e03401c98b
@ -352,7 +352,7 @@ MxBool LegoNavController::CalculateNewPosDir(
|
|||||||
m_rotationalVel = CalculateNewVel(m_targetRotationalVel, m_rotationalVel, m_rotationalAccel * 40.0f, deltaTime);
|
m_rotationalVel = CalculateNewVel(m_targetRotationalVel, m_rotationalVel, m_rotationalAccel * 40.0f, deltaTime);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_rotationalVel = m_targetRotationalVel;
|
m_rotationalVel = m_targetRotationalVel * m_maxRotationalVel * deltaTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_linearVel = CalculateNewVel(m_targetLinearVel, m_linearVel, m_linearAccel, deltaTime);
|
m_linearVel = CalculateNewVel(m_targetLinearVel, m_linearVel, m_linearAccel, deltaTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user