mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 19:41:04 -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);
|
||||
}
|
||||
else {
|
||||
m_rotationalVel = m_targetRotationalVel;
|
||||
m_rotationalVel = m_targetRotationalVel * m_maxRotationalVel * deltaTime;
|
||||
}
|
||||
|
||||
m_linearVel = CalculateNewVel(m_targetLinearVel, m_linearVel, m_linearAccel, deltaTime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user