How to stop colliders from moving with camera?

Noob Question concerning colliders.

  • I’m setting the bg position with an offset to the pointer.y value.
  • I’m using this.camera.main.startFollow(bg, true, 0.05, 0.05) to handle camera scrolling based on the bg position.

I have a sprite set not to scroll - and it’s collider still scrolls.
isHappening

This is what I would like to happen :
shouldHappen

Are colliders dependent on the camera?
If so, how do I fix the collider to the object to prevent it from scrolling with the camera?

Thanks in advance.

Never mind, after some reading in the API and looking at some examples - I realized I forgot to setBounds to the camera. Which I assume was throwing off my scroll factors - still unclear about this.

example that lead me to this : http://labs.phaser.io/edit.html?src=src\camera\follow%20zoom.js

this.cameras.main.setBounds(0, 0, 720, 1280); seems to have fixed the issue I was facing.