Skip to content

Commit

Permalink
1.0 では未使用の AnimationCurve を除去
Browse files Browse the repository at this point in the history
  • Loading branch information
ousttrue committed Oct 7, 2024
1 parent e63c6ff commit 27fc432
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;


Expand All @@ -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;

Expand Down Expand Up @@ -51,8 +47,8 @@ public float Map(float src)
{
src = CurveXRangeDegree;
}
return _curve.Evaluate(src / CurveXRangeDegree) * CurveYRangeDegree;
return src / CurveXRangeDegree * CurveYRangeDegree;
}
}
}
}
}

0 comments on commit 27fc432

Please sign in to comment.