Skip to content

Commit 5075a25

Browse files
committed
change param order
Signed-off-by: Autumn60 <harada.akiro@gmail.com>
1 parent 0d3f326 commit 5075a25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Assets/AWSIM/Scripts/Vehicles/Vehicle.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,15 @@ public float SidewaySlipMultipler
171171
// -MaxSteerAngleInput <= SteerAngleInput <= MaxSteerAngleInput.
172172
[Range(0.01f, 80)]
173173
public float MaxSteerAngleInput = 25f;
174+
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
175+
private float steerAngleTimeConstant = 0.0f;
174176

175177
// Set value to clamp AccelerationInput (m/s^2).
176178
// -MaxAccelerationInput <= AccelerationInput <= MaxAccelerationInput.
177179
[Range(0.01f, 50)]
178180
public float MaxAccelerationInput = 10;
181+
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
182+
private float accelerationTimeConstant = 0.0f;
179183

180184
[Header("Inputs")]
181185

@@ -195,8 +199,6 @@ public float AccelerationInput
195199
set => acceleration.DesiredValue = Mathf.Clamp(value, -MaxAccelerationInput, MaxAccelerationInput);
196200
}
197201
private FirstOrderLaggedFloat acceleration;
198-
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
199-
private float accelerationTimeConstant = 0.0f;
200202

201203
/// <summary>
202204
/// Vehicle steering input. Tire angle (degree)
@@ -208,8 +210,6 @@ public float SteerAngleInput
208210
set => steerAngle.DesiredValue = Mathf.Clamp(value, -MaxSteerAngleInput, MaxSteerAngleInput);
209211
}
210212
private FirstOrderLaggedFloat steerAngle;
211-
[SerializeField, Min(0.0f), Tooltip("Set 0 to disable the lag")]
212-
private float steerAngleTimeConstant = 0.0f;
213213

214214
/// <summary>
215215
/// Vehicle turn signal input. NONE, LEFT, RIGHT, HAZARD.

0 commit comments

Comments
 (0)