update plugin

This commit is contained in:
CroakFang
2023-06-29 15:34:20 +08:00
parent b53035de82
commit 05a7afe25a
1469 changed files with 1264644 additions and 251 deletions
@@ -0,0 +1,16 @@
using UnityEngine;
using System.Collections;
using RootMotion.FinalIK;
namespace RootMotion.Demos {
public class AimSwing : MonoBehaviour {
public AimIK ik;
[Tooltip("The direction of the animated weapon swing in character space. Tweak this value to adjust the aiming.")] public Vector3 animatedSwingDirection = Vector3.forward;
void LateUpdate () {
ik.solver.axis = ik.solver.transform.InverseTransformVector(ik.transform.rotation * animatedSwingDirection);
}
}
}