我正在开发一个“太空入侵者”游戏,我已经实现了CMMotionManager来移动我的heroShip倾斜(游戏只能在横向运行),但由于某种原因我的船会移出视野,即使self.physicsBody=SKPhysicsBody(edgeLoopFromRect:self.frame)应该通过制造物理优势来防止这种情况发生。有什么想法吗?importSpriteKitimportCoreMotionclassGameScene:SKScene,SKPhysicsContactDelegate{letcollisionBulletCategory:UInt32=0x1,withEvente