Explorar o código

Fixed fork animation

Marcel Zickler %!s(int64=3) %!d(string=hai) anos
pai
achega
8474767c65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)