Marcel Zickler il y a 3 ans
Parent
commit
c26a4d4379

Fichier diff supprimé car celui-ci est trop grand
+ 6 - 3
Assembly-CSharp-Editor.csproj


Fichier diff supprimé car celui-ci est trop grand
+ 6 - 3
Assembly-CSharp.csproj


+ 2 - 1
Assets/Scripts/Wheels/LerpSlopeCollider.cs

@@ -12,6 +12,7 @@ namespace Wheels
         private const float MAX_RAYCAST_LENGTH = 2f;
         public int collisionLayer = 1;
 
+        public float maxBikeAngle = 8.6f;
         public Transform rearWheelContact;
         public Transform frontWheelContact;
         public Rigidbody bike;
@@ -89,7 +90,7 @@ namespace Wheels
 
                 var slopeDif = SlopeDirection * (currentFrontWheelSlope - bikeAngle);
                 if (Mathf.Abs(currentFrontWheelSlope - bikeAngle) <
-                    TOLERANCE)
+                    TOLERANCE || Mathf.Abs(bikeAngle) > maxBikeAngle)
                 {
                     rotate = false;
                     return;

Fichier diff supprimé car celui-ci est trop grand
+ 6 - 3
SteamVR.csproj


Fichier diff supprimé car celui-ci est trop grand
+ 6 - 3
SteamVR_Editor.csproj


Fichier diff supprimé car celui-ci est trop grand
+ 6 - 3
SteamVR_Input_Editor.csproj


Fichier diff supprimé car celui-ci est trop grand
+ 6 - 3
SteamVR_Windows_EditorHelper.csproj


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff