
比如要拿的骨骼点名字为 骨骼点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;
楼上总结的很到位,相对偏移量现取现用就好
