以下代码中getLocation获取的世界坐标经过节点坐标转换后,再赋值给PLAYER节点,PLAYER拖动时始终有偏移,默认描点都是0.5的,不知道如何进行调整修复这个偏移
touchMove(event) {
let rootNode = window.rootui as Node
var w_pos = event.getLocation();
let nodePs = rootNode.getComponent(UITransform).convertToNodeSpaceAR(new Vec3(w_pos.x, w_pos.y, 0))
this.playerNode.setPosition(nodePs)
}