I have a path that is a triangle and i am trying to move it forward a certain length at a specific angle,
this.x += length*Math.sin(this.angle);
this.y -= -length*Math.cos(this.angle);
length is the amount of distance forward and angle is the angle at which the path is facing. When i run it, and the angle is 90 degrees it moves on the x
correctly but changes the y
.