bodyWithEdgeLoopFromRect not working in landscape
问题 I'm just trying to set up a basic scene in landscape, with gravity, and having the scene in an edge loop. I set up the scene's physics body and the mainCharacter sprite physics body, here is my code: -(id)initWithSize:(CGSize)size { if (self = [super initWithSize:size]) { self.backgroundColor = [SKColor redColor]; [self setPhysicsBody:[SKPhysicsBody bodyWithEdgeLoopFromRect:[self frame]]]; } return self; } -(void)setupMain { if (!self.mainCharacter) { self.mainCharacter = [[SKSpriteNode alloc