Use the correct interpolator for MovementController rotation

This commit is contained in:
Kae 2023-06-23 19:06:05 +10:00
parent e5d2e2c462
commit 49c487cd82

View File

@ -183,7 +183,7 @@ MovementController::MovementController(MovementParameters const& parameters) {
m_xVelocity.setInterpolator(lerp<float, float>); m_xVelocity.setInterpolator(lerp<float, float>);
m_yVelocity.setInterpolator(lerp<float, float>); m_yVelocity.setInterpolator(lerp<float, float>);
m_rotation.setInterpolator(lerp<float, float>); m_rotation.setInterpolator(angleLerp<float, float>);
m_xRelativeSurfaceMovingCollisionPosition.setInterpolator(lerp<float, float>); m_xRelativeSurfaceMovingCollisionPosition.setInterpolator(lerp<float, float>);
m_yRelativeSurfaceMovingCollisionPosition.setInterpolator(lerp<float, float>); m_yRelativeSurfaceMovingCollisionPosition.setInterpolator(lerp<float, float>);