Skip to content

Commit

Permalink
fix R gear minnor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mackierx111 committed Apr 10, 2024
1 parent 9e23684 commit 3ef1b35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Assets/AWSIM/Scripts/Vehicles/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ public float SidewaySlipMultipler

private float sleepTimer = 0.0f; ///Count the time until CanSleep is switched to true



// Cache components.
Wheel[] wheels;
Rigidbody m_rigidbody;
Expand Down Expand Up @@ -493,7 +491,7 @@ void UpdateWheelsForce(float acceleration)

if (Speed > 0)
{
var maxAcceleration = Speed / Time.deltaTime;
var maxAcceleration = -Speed / Time.deltaTime;
if (acceleration > maxAcceleration)
acceleration = maxAcceleration;
}
Expand Down

0 comments on commit 3ef1b35

Please sign in to comment.