- 我导入unity。我的角色进行左右转向,我把自定义的根部骨骼进行x轴线旋转。 然后我在unity里面对身体加入了碰撞盒以及骨骼跟随脚本。 是spine自带的脚本。我发现转到右边的时候。也就是-x的时候。身体的碰撞盒是反转的,类似z轴-180度旋转。我感觉是官方脚本的问题。 希望你们可以看一下
关于左右缩放后 翻转的问题
在使用Spine进行角色翻转时,遇到碰撞盒反转的问题可能与骨骼的缩放和旋转设置有关。根据提供的上下文,翻转角色通常是通过将根骨骼的scaleX
设置为-1来实现的,这会导致骨骼在Y轴上翻转。然而,如果骨骼的某些属性(如缩放继承)被禁用,可能会导致翻转行为不一致。
在Unity中,确保你使用的是最新版本的spine-unity运行时,并检查是否有任何骨骼的缩放继承被禁用。如果问题仍然存在,尝试在代码中每帧应用缩放设置,确保动画不会覆盖这些设置。此外,检查碰撞盒的设置,确保它们在翻转时正确更新。
zf3d What are the settings of your BoneFollower
component, can you post a screenshot of the Inspector settings?
Which exact version of the spine-unity runtime (name of the unitypackage, also listed in Assets/Spine/version.txt
, or in the Package Manager) are you using?
Please always provide as much information up front as possible, otherwise we will have to write many questions back and forth.