最新回答 / 慕移动0737724
课程里有介绍啊,ctx1.rotate(this.angle);这行代码加了么?前面代码这样的//Math.atan2(y, x) var deltaY = mom.y - this.y; var deltaX = mom.x - this.x; var beta = Math.atan2(deltaY, deltaX) + Math.PI;//-PI/2, PI/2 //lerp angle this.angle = lerpAngle(beta, this.angle, ...
2017-10-14