I'm developing a top down style game where the user can control multiple characters at one time. These characters can move in any direction. There are static bodies (walls, buildings) that the characters can bump into using Box2d for collision detection. The user can move the camera around by dragging his finger across the screen. This will move the CCLayer and any containing CCSprite objects that I added to the layer.
This worked just fine, but then I realized that moving the layer and the sprites did not move the Box2d bodies that they were attached to. The bodies continue moving in their original projections. I've been searching for an answer, but it doesn't seem like anyone has had this problem which leads me to believe that my approach may be off.
I considered moving the camera around instead of the layer, but after a lot of google searching it seems that most people frown upon that idea. So does anyone have any suggestions?