优化MoveTo移动结束有略微偏移问题

This commit is contained in:
dgflash
2022-11-26 21:18:12 +08:00
parent d9a384ec46
commit a60d438d00

View File

@@ -93,6 +93,10 @@ export class MoveTo extends Component {
// 移动完成事件
if (this.timer.update(dt)) {
if (this.ns == Node.NodeSpace.WORLD)
this.node.worldPosition = this.end;
else
this.node.position = this.end;
this.exit();
}
}