Skip to content

Commit

Permalink
different interpspeed
Browse files Browse the repository at this point in the history
  • Loading branch information
caden-maxwell committed Apr 18, 2024
1 parent cee5a9f commit 580f4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/Systems/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void update(TimeSpan elapsedTime)
}

Vector2 cameraOffset = targetPos - m_viewport.Location.ToVector2();
float interpolationSpeed = 0.1f;
float interpolationSpeed = 0.05f;
Vector2 interpolatedPos = m_viewport.Location.ToVector2() + cameraOffset * interpolationSpeed;
m_viewport.Location = interpolatedPos.ToPoint();

Expand Down

0 comments on commit 580f4c7

Please sign in to comment.