From 4f6ff8f798d763164b5128d221732a1da1f16ccb Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 27 Feb 2023 19:18:51 +0900 Subject: [PATCH] =?UTF-8?q?=E6=98=8E=E7=A4=BA=E7=9A=84=E3=81=AA=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=82=BF=E3=83=BC=E3=83=95=E3=82=A7=E3=82=A4=E3=82=B9?= =?UTF-8?q?=E3=81=AE=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Vrm10Runtime/ControlRig/Vrm10RuntimeControlRig.cs | 6 +++--- Assets/VRM10/Runtime/ControlRig/AnimatorPoseProvider.cs | 6 +++--- .../VRM10/Runtime/ControlRig/InitialRotationPoseProvider.cs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/ControlRig/Vrm10RuntimeControlRig.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/ControlRig/Vrm10RuntimeControlRig.cs index 07ce942ad..d054033e8 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/ControlRig/Vrm10RuntimeControlRig.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/ControlRig/Vrm10RuntimeControlRig.cs @@ -69,13 +69,13 @@ namespace UniVRM10 } } - public void SetRawHipsPosition(Vector3 position) + void INormalizedPoseApplicable.SetRawHipsPosition(Vector3 position) { var world = _controlRigRoot.TransformPoint(position); _hipBone.ControlBone.position = world; } - public void SetNormalizedLocalRotation(HumanBodyBones bone, Quaternion normalizedLocalRotation) + void INormalizedPoseApplicable.SetNormalizedLocalRotation(HumanBodyBones bone, Quaternion normalizedLocalRotation) { if (_bones.TryGetValue(bone, out var t)) { @@ -83,7 +83,7 @@ namespace UniVRM10 } } - public EuclideanTransform? GetWorldTransform(HumanBodyBones bone) + EuclideanTransform? ITPoseProvider.GetWorldTransform(HumanBodyBones bone) { if (_bones.TryGetValue(bone, out var t)) { diff --git a/Assets/VRM10/Runtime/ControlRig/AnimatorPoseProvider.cs b/Assets/VRM10/Runtime/ControlRig/AnimatorPoseProvider.cs index 535c757db..5d570c36b 100644 --- a/Assets/VRM10/Runtime/ControlRig/AnimatorPoseProvider.cs +++ b/Assets/VRM10/Runtime/ControlRig/AnimatorPoseProvider.cs @@ -40,7 +40,7 @@ namespace UniVRM10 } } - public Quaternion GetNormalizedLocalRotation(HumanBodyBones bone, HumanBodyBones parentBone) + Quaternion INormalizedPoseProvider.GetNormalizedLocalRotation(HumanBodyBones bone, HumanBodyBones parentBone) { if (m_animator.GetBoneTransform(bone) is Transform t) { @@ -54,13 +54,13 @@ namespace UniVRM10 } } - public Vector3 GetRawHipsPosition() + Vector3 INormalizedPoseProvider.GetRawHipsPosition() { // TODO: from model root ? return m_animator.GetBoneTransform(HumanBodyBones.Hips).localPosition; } - public EuclideanTransform? GetWorldTransform(HumanBodyBones bone) + EuclideanTransform? ITPoseProvider.GetWorldTransform(HumanBodyBones bone) { if (m_posMap.TryGetValue(bone, out var t)) { diff --git a/Assets/VRM10/Runtime/ControlRig/InitialRotationPoseProvider.cs b/Assets/VRM10/Runtime/ControlRig/InitialRotationPoseProvider.cs index aea486911..e87769866 100644 --- a/Assets/VRM10/Runtime/ControlRig/InitialRotationPoseProvider.cs +++ b/Assets/VRM10/Runtime/ControlRig/InitialRotationPoseProvider.cs @@ -32,7 +32,7 @@ namespace UniVRM10 } } - public Quaternion GetNormalizedLocalRotation(HumanBodyBones bone, HumanBodyBones parentBone) + Quaternion INormalizedPoseProvider.GetNormalizedLocalRotation(HumanBodyBones bone, HumanBodyBones parentBone) { if (m_bones.TryGetValue(bone, out var c)) { @@ -45,7 +45,7 @@ namespace UniVRM10 } } - public Vector3 GetRawHipsPosition() + Vector3 INormalizedPoseProvider.GetRawHipsPosition() { if (m_hips.parent == m_root) { @@ -57,7 +57,7 @@ namespace UniVRM10 } } - public EuclideanTransform? GetWorldTransform(HumanBodyBones bone) + EuclideanTransform? ITPoseProvider.GetWorldTransform(HumanBodyBones bone) { throw new System.NotImplementedException(); }