瀏覽代碼

Fixed fork animation

Marcel Zickler 3 年之前
父節點
當前提交
8474767c65
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)