SKPhysicsContact Not Detecting categoryBitMask Collision
问题 So I have my "Floor.swift" class below which is basically a bunch of walls. I have objects coming from the top of the screen and once the Floor and SKSpriteNodes collide, I'd like the SKSpriteNode to be removed. Below is my Floor class. import Foundation import SpriteKit class Floor: SKNode { override init() { super.init() let leftWall = SKSpriteNode(color: UIColor.brown, size: CGSize(width: 5, height: 50)) leftWall.position = CGPoint(x: 0, y: 50) leftWall.physicsBody = SKPhysicsBody