From 27fc4324c8012f724abceebc5e3315c8f0e18f6c Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 7 Oct 2024 15:25:33 +0900 Subject: [PATCH] =?UTF-8?q?1.0=20=E3=81=A7=E3=81=AF=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E3=81=AE=20AnimationCurve=20=E3=82=92=E9=99=A4?= =?UTF-8?q?=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs b/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs index 174b3a02a..7c884f50c 100644 --- a/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs +++ b/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; using UnityEngine; @@ -9,8 +7,6 @@ namespace UniVRM10 [Serializable] public class CurveMapper { - private AnimationCurve _curve = AnimationCurve.Linear(0, 0, 1.0f, 1.0f); - [Range(20.0f, 90.0f)] public float CurveXRangeDegree; @@ -51,8 +47,8 @@ namespace UniVRM10 { src = CurveXRangeDegree; } - return _curve.Evaluate(src / CurveXRangeDegree) * CurveYRangeDegree; + return src / CurveXRangeDegree * CurveYRangeDegree; } } } -} +} \ No newline at end of file