Browse Source

Fixed fork animation

Marcel Zickler 3 years ago
parent
commit
8474767c65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/Scripts/Animation/BikeAnimation.cs

+ 1 - 1
Assets/Scripts/Animation/BikeAnimation.cs

@@ -122,7 +122,7 @@ namespace Animation
                 rotatable.gameObject.transform.localRotation = initialRotations[rotatable];
             }
 
-            if (angle <= 0.2f) return;
+            if (Mathf.Abs(angle) <= 0.2f) return;
 
             Vector3 axis;
             if (rotatable.rotateAxis == RotateAxis.Up)