• International中文
  • 在godot中使用spine能否单独修改某个骨骼的scale值且不中断动画

我想做一个武器动态变长的效果,在spine里通过骨骼变形已经完成了

但是在godot中使用时,SpineBoneNode却没有找到更改scale值的方法,bone mode = follow时不能修改scale,bone mode = drive 时骨骼会脱离动画

我是否有办法实现能实现这个效果,或者我尝试使用SpineSlotNode来实现这个效果,将图片作为 node 插入进slot中。
谢谢。

    Related Discussions
    ...

    bitcat I think you want to use a one-bone, inverse-kinematic constraint to scale the bone. Driving the target bone of the IK constraint by SpineBoneNode should scale your weapon.

      Another alternative is to hook into the world_transforms_changed signal, modify the bone scale, then call SpineSprite.skeleton.update_world_transforms() again for the changed bone scale to take effect.

      The IK constraint is conceptionally cleaner though.

      11 gün sonra

      SilverStraw 谢谢,更改了骨骼逻辑后,完成了这个效果