mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-12 08:09:22 -05:00
Update Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs
Co-authored-by: 0b5vr <0b5vr@0b5vr.com>
This commit is contained in:
parent
6a02614d35
commit
a335e375ec
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user