holopy3/Assets/Plugins/RootMotion/Editor/FinalIK/IKSolverInspector.cs
2020-12-10 15:25:12 +01:00

19 lines
392 B
C#

using UnityEngine;
using UnityEditor;
using System.Collections;
using System;
namespace RootMotion.FinalIK {
/*
* Contains helper methods for managing IKSolver's fields.
* */
public class IKSolverInspector: Inspector {
public static float GetHandleSize(Vector3 position) {
float s = HandleUtility.GetHandleSize(position) * 0.1f;
return Mathf.Lerp(s, 0.025f, 0.2f);
}
}
}