Fixed second scene

This commit is contained in:
OverflowNarhoym
2022-02-23 13:28:25 +01:00
parent ff14aea8b2
commit bd4f9abb9e
4 changed files with 23 additions and 167 deletions

View File

@@ -46,7 +46,7 @@ namespace Platforms
{
var position = transform.position;
var targetPosition = new Vector3(position.x + xOffeset, position.y + yOffset, 0.0f);
position = Vector3.SmoothDamp(position, targetPosition, ref _velocity, 1.0f);
position = Vector3.SmoothDamp(position, targetPosition, ref _velocity, 1.0f, 1.0f);
transform.position = position;
}
}