public update(dt: number) {
let a = this.node.position;
let b = this._target.position; // 目标坐标
let direction = cc.Vec3.subtract(this._v3, b, a);
let radian = Math.atan2(direction .y, direction .x);
let radius = this._moveSpeed * dt;
let x = Math.cos(radian) * radius;
let y = Math.sin(radian) * radius;
this.node.x += x;
this.node.y += y;
this.node.angle = cc.math.toDegree(radian);
}
这种?



