spine骨骼点位置如何获取?

image
比如要拿的骨骼点名字为 骨骼点A
我这样拿骨骼点A,拿到的坐标都是0,0
但是骨骼点A放挂点上去可以看到骨骼点A的挂点是一直在变化的

bone.updateWorldTransform();
offstX=bone.worldX;
offstY=bone.worldY;
偏移是相对动画节点的坐标,试试?

       let _spine: sp.Skeleton = this.node.getComponent(sp.Skeleton)!;
       let _bone: sp.spine.Bone = _spine.findBone('shoot')!;
       let _offsetX: number = _bone.worldX / 2;
       let _offsetY: number = _bone.worldY / 2;

楼上总结的很到位,相对偏移量现取现用就好

不知道是不是我用的缓存模式的问题,您的方法不管用,坐标差的太多了。
但是想到挂点是没问题的,就去看了引擎源码,最终拿到了,感觉上可能是缓存模式的问题。
最后写成这样,可以拿到准确的坐标,包括非缓存模式