• RuntimesUnity
  • Physics constraints behave inconsistently in the editor and Unity

使用当前最新版的SPINE和SPINE-UNITY,在SPINE中制作的物理效果在UINTY中的表现有差距,并且当我尝试调整SkeletonAnimation 组件中的 Physics Inheritance 设置时,无论调整为任何数值,对物理模拟都没有任何影响,似乎这个参数没有起到任何作用
Using the latest version of SPINE and SPINE-UNITY, the physics effects made in SPINE are not performed the same in UNITY, and when I try to adjust the Physics Inheritance setting in the SkeletonAnimation component, no matter what value I adjust it to, it has no effect on the physics simulation. It seems that this parameter does not play any role.

Related Discussions
...

在使用 Spine 和 Spine-Unity 时,物理效果在编辑器和 Unity 中表现不一致的问题可能与多个因素有关。首先,确保您使用的 Spine 和 Spine-Unity 版本是最新的,并且它们彼此兼容。其次,物理继承设置在 SkeletonAnimation 组件中可能需要根据具体的物理模拟需求进行调整,但如果没有效果,可能是由于其他设置或代码逻辑的影响。可以尝试查看相关的更新日志或文档,确保所有设置和代码都正确配置。

如果问题仍然存在,您可以尝试查看是否有相关的更新或补丁可以解决此问题,或者检查是否有其他用户遇到类似问题并找到了解决方案。


经过几次测试,我个人感觉一部分原因是在unity中“限制”这个参数和SPINE中的效果不同导致的,将这个值拉高几倍后导出到unity才能得到接近的效果
After several tests, I personally feel that part of the reason is that the "limit" of this parameter in Unity is different from the effect in SPINE. You can get a similar effect by increasing this value several times and exporting it to Unity.

请问这是什么游戏呀,做的很棒,想关注一下这个游戏

    @Psyber Unfortunately I don't wuite understand what the video is trying to show. The SkeletonAnimation setting Physics Inheritance determines how much GameObject Transform movement is forwarded to the skeleton. I see no GameObject Transform movement in the video though.

    You are saying you're using the latest Spine Editor and spine-unity runtime version, but I doubt that you mean 4.3-beta. Do you mean Spine Editor version 4.2.43 and spine-unity runtime version package 2025-05-16 (version 4.2.106 in the Unity Package Manager)?

      Harald
      是的,Spine 编辑器版本 4.2.43 和 spine-unity 运行时版本软件包 2025-05-16
      视频中我想展示猫尾巴在SPINE中和UNITY中的弹性表现不同,UNITY中的明显运动幅度更小,即使他们参数完全一致,在我测试时发现只有将物理约束的“限制”调整到5000,才能让SPINE和UINTY中的物理表现完全一致,在多节的,类似飘带的动态骨骼中越明显。

      @Psyber Thanks for the additional information. Apart from different frame-rate in Unity vs the Spine Editor altering physics play-back slightly, there should not be massive differences between both. Could you please send us a minimal Unity project and the problematic Spine project which still shows this issue? You can send it as a zip file to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context. Then we can have a look what's going wrong.