From 5075a25095f480404f12cc29b717b639a7bbf9d7 Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Mon, 25 Nov 2024 17:50:35 +0900 Subject: [PATCH] change param order Signed-off-by: Autumn60 --- Assets/AWSIM/Scripts/Vehicles/Vehicle.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/AWSIM/Scripts/Vehicles/Vehicle.cs b/Assets/AWSIM/Scripts/Vehicles/Vehicle.cs index 280d0ad89..8ff3418e9 100644 --- a/Assets/AWSIM/Scripts/Vehicles/Vehicle.cs +++ b/Assets/AWSIM/Scripts/Vehicles/Vehicle.cs @@ -171,11 +171,15 @@ public float SidewaySlipMultipler // -MaxSteerAngleInput <= SteerAngleInput <= MaxSteerAngleInput. [Range(0.01f, 80)] public float MaxSteerAngleInput = 25f; + [SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")] + private float steerAngleTimeConstant = 0.0f; // Set value to clamp AccelerationInput (m/s^2). // -MaxAccelerationInput <= AccelerationInput <= MaxAccelerationInput. [Range(0.01f, 50)] public float MaxAccelerationInput = 10; + [SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")] + private float accelerationTimeConstant = 0.0f; [Header("Inputs")] @@ -195,8 +199,6 @@ public float AccelerationInput set => acceleration.DesiredValue = Mathf.Clamp(value, -MaxAccelerationInput, MaxAccelerationInput); } private FirstOrderLaggedFloat acceleration; - [SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")] - private float accelerationTimeConstant = 0.0f; /// /// Vehicle steering input. Tire angle (degree) @@ -208,8 +210,6 @@ public float SteerAngleInput set => steerAngle.DesiredValue = Mathf.Clamp(value, -MaxSteerAngleInput, MaxSteerAngleInput); } private FirstOrderLaggedFloat steerAngle; - [SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")] - private float steerAngleTimeConstant = 0.0f; /// /// Vehicle turn signal input. NONE, LEFT, RIGHT, HAZARD.