From e11dea14971f8d13a2ece0bd9c61c6c441c6a5f1 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 3 Nov 2021 19:57:14 +0100 Subject: [PATCH] [unity] Minor refactoring: renamed a preprocessor constant. --- .../SkeletonUtility Modules/SkeletonRagdoll2D.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs index 5b7851e32..2b8429e9a 100644 --- a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs +++ b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonUtility Modules/SkeletonRagdoll2D.cs @@ -30,7 +30,7 @@ // Contributed by: Mitch Thompson #if UNITY_2019_2 || UNITY_2019_3 || UNITY_2019_4 || UNITY_2020_1 || UNITY_2020_2 // note: 2020.3+ uses old bahavior again -#define HINGE_JOINT_NEW_BEHAVIOUR +#define HINGE_JOINT_2019_BEHAVIOUR #endif using System.Collections; @@ -174,7 +174,7 @@ namespace Spine.Unity.Examples { joint.GetComponent().mass = joint.connectedBody.mass * massFalloffFactor; -#if HINGE_JOINT_NEW_BEHAVIOUR +#if HINGE_JOINT_2019_BEHAVIOUR float referenceAngle = (rbParent.transform.eulerAngles.z - t.eulerAngles.z + 360f) % 360f; float minAngle = referenceAngle - rotationLimit; float maxAngle = referenceAngle + rotationLimit;