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,29 @@
using UnityEngine;
using System.Collections;
using RootMotion.FinalIK;
namespace RootMotion.Demos {
/// <summary>
/// Just for testing out the Recoil script.
/// </summary>
public class RecoilTest : MonoBehaviour {
public float magnitude = 1f;
private Recoil recoil;
void Start() {
recoil = GetComponent<Recoil>();
}
void Update() {
if (Input.GetKeyDown(KeyCode.R) || Input.GetMouseButtonDown(0)) recoil.Fire(magnitude);
}
void OnGUI() {
GUILayout.Label("Press R or LMB for procedural recoil.");
}
}
}