adjust rotational speed by delta time (#208)

This commit is contained in:
MattKC 2025-05-31 04:21:22 -07:00 committed by GitHub
parent 613e5b8d9f
commit e03401c98b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);