按角度沿直线运动问题

cc.Class({
extends: cc.Component,
properties: {
angle: 30,
speed:20,
},
update(dt) {
this.node.x = this.node.x + (this.speed * Math.cos(this.angle));
this.node.y = this.node.y + (this.speed * Math.sin(this.angle));
},});

角度angle=0的时候貌似正常,其他角度都是乱的:joy:

    let bx = this.node.x;
    let by = this.node.y;
    bx += dt * this.speed * Math.sin((this.angle) / 180 * Math.PI);
    by += dt * this.speed * Math.cos((this.angle) / 180 * Math.PI);
    this.node.x = bx;
    this.node.y = by;

let bx = this.node.x;
let by = this.node.y;
bx += dt * this.speed * Math.sin((this.angle) / 180 * Math.PI);
by += dt * this.speed * Math.cos((this.angle) / 180 * Math.PI);
this.node.x = bx;
this.node.y = by;

谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!