Files
2026-03-04 10:03:45 +08:00

27 lines
486 B
C#

using RootMotion.FinalIK;
using UnityEngine;
namespace RootMotion.Demos
{
public class BendGoal : MonoBehaviour
{
public LimbIK limbIK;
[Range(0f, 1f)]
public float weight = 1f;
private void Start()
{
Debug.Log("BendGoal is deprecated, you can now a bend goal from the custom inspector of the LimbIK component.");
}
private void LateUpdate()
{
if (!(limbIK == null))
{
limbIK.solver.SetBendGoalPosition(base.transform.position, weight);
}
}
}
}