Увеличение отзывчивости управления
This commit is contained in:
parent
d2f39abd4b
commit
06075d9748
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue