Parcourir la source

Fixed fork animation

Marcel Zickler il y a 3 ans
Parent
commit
8474767c65
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)