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

29 lines
563 B
C#

using RootMotion.FinalIK;
using UnityEngine;
namespace RootMotion.Demos
{
public class FBIKBendGoal : MonoBehaviour
{
public FullBodyBipedIK ik;
public FullBodyBipedChain chain;
public float weight;
private void Start()
{
Debug.Log("FBIKBendGoal is deprecated, you can now a bend goal from the custom inspector of the FullBodyBipedIK component.");
}
private void Update()
{
if (!(ik == null))
{
ik.solver.GetBendConstraint(chain).bendGoal = base.transform;
ik.solver.GetBendConstraint(chain).weight = weight;
}
}
}
}