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; } }