소스 검색

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)