IKSolverInspector.cs 392 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. using UnityEditor;
  3. using System.Collections;
  4. using System;
  5. namespace RootMotion.FinalIK {
  6. /*
  7. * Contains helper methods for managing IKSolver's fields.
  8. * */
  9. public class IKSolverInspector: Inspector {
  10. public static float GetHandleSize(Vector3 position) {
  11. float s = HandleUtility.GetHandleSize(position) * 0.1f;
  12. return Mathf.Lerp(s, 0.025f, 0.2f);
  13. }
  14. }
  15. }