我创建了奔跑的物理效果,但是只有一个方向好使,在其他三个方向动画是错的,看起来是spine本身并没有进行旋转
PhysicsConstraint在3d世界中有问题
根据您提供的信息,您遇到的问题可能是由于Spine的物理约束在3D世界中的旋转处理不正确。这个问题在Spine 4.2版本中已经被报告,并且有一些相关的讨论和解决方案。
物理约束的旋转问题:在Spine 4.2版本中,物理约束的旋转在某些情况下可能没有正确应用。这个问题已经被报告,并且在新的spine-unity 4.2版本中进行了修复。您可以下载最新的spine-unity 4.2 unitypackage来解决这个问题。下载链接:spine-unity-download。
约束顺序:确保您的约束顺序是正确的。约束的计算是从上到下进行的,如果顺序不正确,可能会导致动画效果不如预期。您可以参考这个链接了解更多关于约束顺序的信息:Constraints: Order。
Transform约束:如果您使用了Transform约束,确保被约束的骨骼不是目标的子骨骼,这样会导致约束不起作用。另外,您可以尝试点击约束节点上的“重置”按钮,看看是否能通过改变顺序来解决问题。
希望这些信息能帮助您解决问题。如果问题仍然存在,请确保您使用的是最新版本的Spine编辑器和相关的运行时库。
Marsyian I'm afraid that the explanation is too brief and I'm not sure what specific problem you are experiencing.
If you are not using the latest editor and runtime, as Spinebot has already done, we suggest you update it, but if that does not solve the problem, we would appreciate it if you could show us the results you are looking for and what you are actually getting.
Please create a minimal Unity project that demonstrates the issue. I'm afraid it's not possible for us to reproduce what you are seeing just based on your description.
@Marsyian You can send us your minimal Unity project as a zip file to contact@esotericsoftware.com if you can't share a public link on the forum. When sending an email, please briefly mention this forum URL so that we know the context.
@Marsyian Thanks for sending the reproduction video. This was indeed a bug, thanks for reporting! We've just fixed this issue on the 4.2 branch.
A new spine-unity 4.2 unitypackage is available for download:
https://esotericsoftware.com/spine-unity-download
Issue ticket URL for later reference:
EsotericSoftware/spine-runtimes2614