From e03401c98b531c27cd2dc6c6dd5959924690167f Mon Sep 17 00:00:00 2001 From: MattKC <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 31 May 2025 04:21:22 -0700 Subject: [PATCH] adjust rotational speed by delta time (#208) --- LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp index 5a702118..fc11006f 100644 --- a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp +++ b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp @@ -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);