I’m trying to do this with changing files
GameConfig.h:
#define GAME_AUTOROTATION kGameAutorotationNone
And App delegate:
//#if GAME_AUTOROTATION == kGameAutorotationUIViewController
[director setDeviceOrientation:kCCDeviceOrientationPortrait];
//#else
//[director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
//#endif
App turns to Portrait mode, but Box2d bodies forced gravity to right
You should edit the file
RootViewController.mat line 88:and change it to:
This setting only takes effect when
GAME_AUTOROTATIONis defined askGameAutorotationUIViewController, inGameConfig.h.///////