From 610048cdcf1bcbbbc060901964362d4ab86cd234 Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Thu, 21 Apr 2022 12:18:18 +0900 Subject: [PATCH] change (1.0, constraint): Change max range of weights to 1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 現状、仕様ではweightの最大値は1.0となっているので、UI上もこれに従うのが良いと思います。 --- .../VRM10/Runtime/Components/Constraint/Vrm10AimConstraint.cs | 2 +- .../VRM10/Runtime/Components/Constraint/Vrm10RollConstraint.cs | 2 +- .../Runtime/Components/Constraint/Vrm10RotationConstraint.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/VRM10/Runtime/Components/Constraint/Vrm10AimConstraint.cs b/Assets/VRM10/Runtime/Components/Constraint/Vrm10AimConstraint.cs index c1ba95896..5121f485b 100644 --- a/Assets/VRM10/Runtime/Components/Constraint/Vrm10AimConstraint.cs +++ b/Assets/VRM10/Runtime/Components/Constraint/Vrm10AimConstraint.cs @@ -16,7 +16,7 @@ namespace UniVRM10 public Transform Source = default; [SerializeField] - [Range(0, 10.0f)] + [Range(0, 1.0f)] public float Weight = 1.0f; [SerializeField] diff --git a/Assets/VRM10/Runtime/Components/Constraint/Vrm10RollConstraint.cs b/Assets/VRM10/Runtime/Components/Constraint/Vrm10RollConstraint.cs index 292757d73..204e7405a 100644 --- a/Assets/VRM10/Runtime/Components/Constraint/Vrm10RollConstraint.cs +++ b/Assets/VRM10/Runtime/Components/Constraint/Vrm10RollConstraint.cs @@ -16,7 +16,7 @@ namespace UniVRM10 public Transform Source = default; [SerializeField] - [Range(0, 10.0f)] + [Range(0, 1.0f)] public float Weight = 1.0f; [SerializeField] diff --git a/Assets/VRM10/Runtime/Components/Constraint/Vrm10RotationConstraint.cs b/Assets/VRM10/Runtime/Components/Constraint/Vrm10RotationConstraint.cs index 5fb3a915a..9cf573896 100644 --- a/Assets/VRM10/Runtime/Components/Constraint/Vrm10RotationConstraint.cs +++ b/Assets/VRM10/Runtime/Components/Constraint/Vrm10RotationConstraint.cs @@ -14,7 +14,7 @@ namespace UniVRM10 public Transform Source = default; [SerializeField] - [Range(0, 10.0f)] + [Range(0, 1.0f)] public float Weight = 1.0f; Quaternion _srcRestLocalQuatInverse;