let targetPos = victime.getNode().getWorldPosition();
let killerPos = this.getNode().getWorldPosition();
tween(this.node)
.to(0.15,{scale:new Vec3(1.5,1.5, 1.5)})
.to(0.15, {position: targetPos }, {easing: 'bounceInOut'})
.to(0.15, {position:killerPos}, {easing: 'bounceInOut'})
.to(0.15,{scale:new Vec3(1,1, 0)})
.call(()=>{
this.node.setWorldPosition( killerPos );
})
.start();
2.0时代,不需要上面的call node也能回到原位,现在不加call的那段代码。。。 node始终会有偏移