Rotation breaks on zoom

Hi there, I’ve got a basic sprite rotate with mouse thing going on, but when I zoom in at all, the angles get all messed up.

Here’s the relevant code:

update() {
this.currentPointer = {
x: this.config.scene.input.activePointer.x + this.config.scene.cameras.main.worldView.x,
y: this.config.scene.input.activePointer.y + this.config.scene.cameras.main.worldView.y,
}
this.setAngle(Phaser.Math.Angle.Between(this.body.position.x, this.body.position.y , this.currentPointer.x, this.currentPointer.y) * (180/Math.PI))
}

:wave:

const { worldX, worldY } = this.config.scene.input.activePointer;

this.setRotation(
  Phaser.Math.Angle.Between(
    this.body.position.x,
    this.body.position.y,
    worldX,
    worldY
  )
);