From 06075d9748db6725a7d770e229a0f72791536444 Mon Sep 17 00:00:00 2001 From: "r.nikolin" Date: Tue, 7 Nov 2023 10:58:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=82=D0=B7=D1=8B=D0=B2=D1=87=D0=B8?= =?UTF-8?q?=D0=B2=D0=BE=D1=81=D1=82=D0=B8=20=D1=83=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/ShipMoveSides.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/ShipMoveSides.cs b/Assets/Scripts/ShipMoveSides.cs index 6b476bdf..f13c2557 100644 --- a/Assets/Scripts/ShipMoveSides.cs +++ b/Assets/Scripts/ShipMoveSides.cs @@ -54,8 +54,8 @@ public class ShipMoveSides : MonoBehaviour var newPos = transform.localPosition; newPos.x = 0; - transform.localPosition = Vector3.Lerp(transform.localPosition, newPos, Time.deltaTime * MaxRollSpeed * _pathFollower.SpeedPercent); - transform.localRotation = Quaternion.Euler(new Vector3(0, 0, _value * -MaxRollAngle * _pathFollower.SpeedPercent)); + transform.localPosition = Vector3.Lerp(transform.localPosition, newPos, Time.deltaTime * MaxRollSpeed);//* _pathFollower.SpeedPercent); + transform.localRotation = Quaternion.Euler(new Vector3(0, 0, _value * -MaxRollAngle));// * _pathFollower.SpeedPercent)); } public void ChangeRollSpeed(float val)