Увеличение отзывчивости управления

This commit is contained in:
r.nikolin 2023-11-07 10:58:41 +03:00
parent d2f39abd4b
commit 06075d9748
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ public class ShipMoveSides : MonoBehaviour
var newPos = transform.localPosition; var newPos = transform.localPosition;
newPos.x = 0; newPos.x = 0;
transform.localPosition = Vector3.Lerp(transform.localPosition, newPos, Time.deltaTime * MaxRollSpeed * _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)); transform.localRotation = Quaternion.Euler(new Vector3(0, 0, _value * -MaxRollAngle));// * _pathFollower.SpeedPercent));
} }
public void ChangeRollSpeed(float val) public void ChangeRollSpeed(float val)