之前也写过一篇IK 的文章:《好好玩游戏:Unity 头部IK 与手脚IK》
https://assetstore.unity.com/packages/tools/animation/final-ik-14290
本文使用的Unity 环境是:Unity 版本是2021.3.13f1c1,并且使用的是内置渲染管线(Build-In RP [3D])
阅读《FinalIK User Manual.pdf》了解其用法
/Assets/Plugins/RootMotion/FinalIK/_DEMOS 下面是该插件的各种演示案例!比如Leg IK、蜘蛛动画等等

运行的时候可能出现报错:
InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
RootMotion.Demos.MechSpiderController.get_inputVector () (at Assets/Plugins/RootMotion/FinalIK/_DEMOS/CCD IK/Scripts/MechSpiderController.cs:18)
RootMotion.Demos.MechSpiderParticles.Update () (at Assets/Plugins/RootMotion/FinalIK/_DEMOS/CCD IK/Scripts/MechSpiderParticles.cs:21)
因为之前RPG Character Mecanim Animation Pack 6.0 需要依赖Input System,这个插件又需要依赖Input Manager
所以需要修改配置:【Edit】->【Project Settings】->【Player】->【Active Input Handling】 设置为Both,使得兼容两种输入系统!