Physics body not showing only for one sprite?
Physics body not showing only for one sprite? The problem I have is when I initialize my sprite, I have another sprite defined the same way and that sprite shows that it has a physics body because I see the green outline on that, but this sprite below has no green outline on it, I think that there is a problem when I create the SKPhysicsBody or maybe because I create 13 duplicates of the same sprite at random positions as shown in the second snippet of code. SKPhysicsBody @objc func CreateNewAsteroid() { var asteroid : SKSpriteNode? let moveAsteroidDown = SKAction.repeatForever(SKAction.moveBy(x: 0, y: -1, duration: 0.01)) let rotateAsteroid = SKAction.repeatForever(SKAction.rotate(byAngle: 25, duration: 5)) let asteroidXpos = randomNum(high: self.frame.size.width/2, low: -1 * self.frame.size.width/2) let asteroidYpos = randomNum(high: 2.5*self.frame.size.height, low: self.frame.size.height/2) let asteroidOrigin : CGPoint = CGPoint(x: asteroidXpos, ...
