From a335e375ec0055c456d5fd32b921475af0122eac Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 11 Oct 2024 16:10:49 +0900 Subject: [PATCH] Update Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs Co-authored-by: 0b5vr <0b5vr@0b5vr.com> --- Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs b/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs index a2be36e4e..1e7109d2a 100644 --- a/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs +++ b/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs @@ -30,7 +30,7 @@ namespace UniVRM10 public float Map(float src) { // https://github.com/vrm-c/UniVRM/issues/2452 - var t = Mathf.Clamp01(Mathf.Clamp(src, 0, CurveXRangeDegree) / Mathf.Max(0.001f, CurveXRangeDegree)); + var t = Mathf.Clamp01(src / Mathf.Max(0.001f, CurveXRangeDegree)); return t * CurveYRangeDegree; } }