Added FinalIK

This commit is contained in:
2026-08-12 16:46:38 +03:00
parent 487e0d72ff
commit 1dc80339d4
1124 changed files with 768831 additions and 139 deletions
@@ -0,0 +1,27 @@
using UnityEngine;
using System.Collections;
using RootMotion.FinalIK;
namespace RootMotion.Demos {
/// <summary>
/// Bend goal for LimbIK. Attach this to a GameObject that you want the limb to bend towards.
/// </summary>
public class BendGoal : MonoBehaviour {
public LimbIK limbIK; // reference to the LimbIK component
[Range(0f, 1f)]
public float weight = 1f;
void Start() {
Debug.Log("BendGoal is deprecated, you can now a bend goal from the custom inspector of the LimbIK component.");
}
void LateUpdate () {
if (limbIK == null) return;
// Set LimbIK bend goal position to myself
limbIK.solver.SetBendGoalPosition(transform.position, weight);
}
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: f0700f2a769ec49a598a1503c9f4ae13
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: