How to make projectile shoot while camera is follow

in update change:
let pointer = this.input.activePointer;
to
let pointer = this.input.activePointer.positionToCamera(this.cameras.main);

and it should work as you want?

1 Like