Here's the code I have:
Is there a way I don't have to constantly unwrap myGSlot.physicsBody?
Code Block myGSlot.physicsBody = SKPhysicsBody(rectangleOf: size) myGSlot.physicsBody!.affectedByGravity = true myGSlot.physicsBody!.affectedByGravity = true myGSlot.physicsBody!.isDynamic = true myGSlot.physicsBody!.restitution = 0.2
Is there a way I don't have to constantly unwrap myGSlot.physicsBody?