setScrollFactor and this.physics.add.image

hi everyone
when i try to set scroll for my items, i see the images are scrolled but their physics, that are a square of lines, just moving and scrolling by their role
this is my code

let graphic = this.physics.add.image(portal_info.asset.x, portal_info.asset.y + 300, "course_back_logo");
      graphic.setScrollFactor(this.o.config.bg.scroll.x, this.o.config.bg.scroll.y)
      graphic.body.allowGravity = false
      graphic.info = g_info
      this.o.player.on("overlapstart", function () {
        this.body.debugBodyColor = 0xff3300;
        console.log("overlapstart");
        console.time("overlap");
      });
      this.o.player.on("overlapend", function () {
        this.body.debugBodyColor = 0x00ff33;
        console.log("overlapend");
        console.timeEnd("overlap");
      });

     
      this.physics.add.overlap(this.o.player, graphic, (p, g) => {
        console.log(g)
        this.o.reach_target = { type: "game", info: g.info }
      });
      this.o.platform_garphics.push(graphic)

attention, this code in the loop

thank you

Camera scroll factors aren’t really compatible with physics.

oh
are you have any solution for this case?
i wanna to collide or check overlaping the image with my player and thats images must be scrolled

I think this does it.

let sprite1, sprite2;

function update() {
  const sprite1OnSprite2 = sprite2.getLocalPoint(sprite1.x, sprite1.y);
  const sprite2Rect = new Phaser.Geom.Rectangle(0, 0, sprite2.width, sprite2.height);

  if (sprite2Rect.contains(sprite1OnSprite2.x, sprite1OnSprite2.y)) {
    // …
  }
}

thank you
but it not working in this case
i wanna to load some data from database to phaser game
database>>>django views>>>vuejs>>>phaser
and when i set this in the update, it cant load the games for the portals without bug or replacing portals

its fixed with cameras…