From 52af1d7ea5300370d4adaa850db4f9b8722bec8f Mon Sep 17 00:00:00 2001 From: gpsnmeajp <33391403+gpsnmeajp@users.noreply.github.com> Date: Sun, 26 Jan 2020 16:52:20 +0900 Subject: [PATCH] =?UTF-8?q?Filter=E3=81=AB1=E4=BB=A5=E4=B8=8A=E3=82=840?= =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E3=82=92=E5=85=A5=E3=82=8C=E3=82=8B=E3=81=A8?= =?UTF-8?q?=E5=90=B9=E3=81=A3=E9=A3=9B=E3=82=93=E3=81=A7=E3=81=84=E3=81=8F?= =?UTF-8?q?=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EVMC4U/CameraReceiver.cs | 2 ++ EVMC4U/ExternalReceiver.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/EVMC4U/CameraReceiver.cs b/EVMC4U/CameraReceiver.cs index 1009196..9dcb23d 100644 --- a/EVMC4U/CameraReceiver.cs +++ b/EVMC4U/CameraReceiver.cs @@ -82,6 +82,8 @@ void Update() //カメラがセットされているならば if (VMCControlledCamera != null && VMCControlledCamera.transform != null && fov != 0) { + CameraFilter = Mathf.Clamp(CameraFilter, 0f, 1f); + //カメラ移動フィルタ if (CameraPositionFilterEnable) { diff --git a/EVMC4U/ExternalReceiver.cs b/EVMC4U/ExternalReceiver.cs index 067c57e..8b71ecf 100644 --- a/EVMC4U/ExternalReceiver.cs +++ b/EVMC4U/ExternalReceiver.cs @@ -575,6 +575,8 @@ private void BoneSynchronize(HumanBodyBones bone, Vector3 pos, Quaternion rot) //1本のボーンの同期 private void BoneSynchronizeSingle(Transform t, ref HumanBodyBones bone, ref Vector3 pos, ref Quaternion rot, bool posFilter, bool rotFilter) { + BoneFilter = Mathf.Clamp(BoneFilter, 0f, 1f); + //ボーン位置同期が有効か if (BonePositionSynchronize) {