Environment
Unity2019.4.0f, Spine runtime for unity 3.8
目前最新的3.8版本运行时的SkeletonAnimation和SkeletonMeccanim组件下都有apply root motion的选项,勾选后就会自动附加对应组件
import latest unitypackage, add SkeletonMacenim component, check apply root motion in Animator component.
(之前跟官方提过这个需求,估计需要的人多了终于提供了官方的解决方案)
Environment
Unity2018.4.1f, Spine runtime for unity 3.7
Steps
- open Spine/Runtime/spine-csharp/Bone.cs, and modify like below
/// <summary>Computes the world transform using the parent bone and the specified local transform.</summary>
public void UpdateWorldTransform (float x, float y, float rotation, float scaleX, float scaleY, float shearX, float shearY) {
ax = x;
ay = y;
arotation = rotation;
ascaleX = scaleX