Skip to content

Commit

Permalink
fix vehicle sleep velocity threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
mackierx111 committed Aug 18, 2023
1 parent 00129cf commit b5f5910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/AWSIM/Scripts/Vehicles/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ bool IsEachWheelGrounded()
// Is less than sleepVelocityThreshold ?
bool IsCanSleepVelocity()
{
if (Mathf.Abs(Velocity.z) < sleepVelocityThreshold)
if (Mathf.Abs(LocalVelocity.z) < sleepVelocityThreshold)
return true;
else
return false;
Expand Down

0 comments on commit b5f5910

Please sign in to comment.