Camera and Box2D related Questions

Hello Game-Devs,

I’m trying to implement a Camera-System into my 2D-Game. So far I’ve implemented two Cameras for UI and the GameWorld. That works fine.

I’m using Box2D and have World-Borders with exact the same Size as the Device Screensize.
When I zoom the GameWorld-Camera in and out all Object get smaller/bigger. That’s fine.
But I don’t want to Resize the World-Borders. They should stay the same size as the Screen.
If I zoom out I still want to be able to use the whole screen.

Is there a way to ignore the World-Borders while zooming with the Camera? CameraMask seems not to be the Solution (Because it’s a pure Box2D Border).

My second Question (with way lower priority) is… how to rotate Camera in a 2D-Game?

Make a cocos2d class that has box2d members?

There really isn’t a need for a camera in 2d game I mean what do you rotate to? You can’t. The most you can do is really change what the camera sees either coming closer or going farther.