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,44 @@
using UnityEngine;
using System.Collections;
using RootMotion.FinalIK;
namespace RootMotion.Demos {
/// <summary>
/// Simple GUI for quickly testing out interactions.
/// </summary>
public class InteractionSystemTestGUI : MonoBehaviour {
[Tooltip("The object to interact to")]
public InteractionObject interactionObject;
[Tooltip("The effectors to interact with")]
public FullBodyBipedEffector[] effectors;
private InteractionSystem interactionSystem;
void Awake() {
interactionSystem = GetComponent<InteractionSystem>();
}
void OnGUI() {
if (interactionSystem == null) return;
if (GUILayout.Button("Start Interaction With " + interactionObject.name)) {
if (effectors.Length == 0) Debug.Log("Please select the effectors to interact with.");
foreach (FullBodyBipedEffector e in effectors) {
interactionSystem.StartInteraction(e, interactionObject, true);
}
}
if (effectors.Length == 0) return;
if (interactionSystem.IsPaused(effectors[0])) {
if (GUILayout.Button("Resume Interaction With " + interactionObject.name)) {
interactionSystem.ResumeAll();
}
}
}
}
}