holopy3/Assets/Plugins/RootMotion/Editor/FinalIK/GroundingInspector.cs

14 lines
369 B
C#
Raw Permalink Normal View History

2020-12-10 14:25:12 +00:00
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace RootMotion.FinalIK {
public class GroundingInspector : Editor {
public static void Visualize(Grounding grounding, Transform root, Transform foot) {
Inspector.SphereCap (0, foot.position + root.forward * grounding.footCenterOffset, root.rotation, grounding.footRadius * 2f);
}
}
}