0
我想要一個與框架一樣寬的地面節點。我目前的代碼是;Spritekit框架長地節點
ground.position = CGPointMake(0, 175)
ground.physicsBody = SKPhysicsBody(rectangleOfSize: CGSizeMake(self.frame.size.width, 1))
ground.physicsBody!.dynamic = false
ground.physicsBody!.categoryBitMask = PhysicsCategory.ground
ground.physicsBody?.contactTestBitMask = PhysicsCategory.ground
ground.physicsBody?.collisionBitMask = PhysicsCategory.ground
self.addChild(ground)
我該如何使它和框架一樣寬?