How to rotate a sprite toward the direction of motion

Instead of that try

this.angle = atan2(this.lookAtY - this.y, this.lookAtX - this.x);