Skip to content

Commit 1a509c4

Browse files
committed
fixed velocity ramp to properly work now
1 parent dd48bdf commit 1a509c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/gamecore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,10 @@ void CCharacterCore::TickDeferred()
533533

534534
void CCharacterCore::Move()
535535
{
536-
float RampValue = VelocityRamp(length(m_Vel) * 50,
536+
float RampValue = VelocityRamp(length(m_Vel) * m_TickSpeed,
537537
CWorldCore::PhysicsScalingLinear(m_Tuning.m_VelrampStart, m_TickSpeed),
538538
CWorldCore::PhysicsScalingLinear(m_Tuning.m_VelrampRange, m_TickSpeed),
539-
m_Tuning.m_VelrampCurvature);
539+
CWorldCore::PhysicsScalingFriction(m_Tuning.m_VelrampCurvature, m_TickSpeed));
540540

541541
m_Vel.x = m_Vel.x * RampValue;
542542

0 commit comments

Comments
 (0)