diff --git a/Assets/VRM/Runtime/SpringBone/VRMSpringBone.cs b/Assets/VRM/Runtime/SpringBone/VRMSpringBone.cs index 158cf10dc4..717f134a3e 100644 --- a/Assets/VRM/Runtime/SpringBone/VRMSpringBone.cs +++ b/Assets/VRM/Runtime/SpringBone/VRMSpringBone.cs @@ -267,7 +267,7 @@ public SphereCollider(Transform transform, VRMSpringBoneColliderGroup.SphereColl { Position = transform.TransformPoint(collider.Offset); var ls = transform.lossyScale; - var scale = Mathf.Max(ls.x, ls.y, ls.z); + var scale = Mathf.Max(Mathf.Max(ls.x, ls.y), ls.z); Radius = scale * collider.Radius; } } diff --git a/Assets/VRM/Runtime/SpringBone/VRMSpringBoneColliderGroup.cs b/Assets/VRM/Runtime/SpringBone/VRMSpringBoneColliderGroup.cs index 9ad63c3aee..bc4fb63ec4 100644 --- a/Assets/VRM/Runtime/SpringBone/VRMSpringBoneColliderGroup.cs +++ b/Assets/VRM/Runtime/SpringBone/VRMSpringBoneColliderGroup.cs @@ -36,8 +36,8 @@ public float UniformedLossyScale get { return Mathf.Max( - transform.lossyScale.x, - transform.lossyScale.y, + Mathf.Max(transform.lossyScale.x, + transform.lossyScale.y), transform.lossyScale.z ); }