I would like to create a rectangular box where only the outline has an SKPhysicsBody. Because I would like to have multiple physics bodies in the rectangle.
Right now as a solid it's causing a lot of complications.
Right now as a solid it's causing a lot of complications.
I believe I have solved my problem. What I did was essentially use SKContraint to nail each child to it's original spot in the parent. It seems to work and I hope that this is the correct answer.
The code below is run at each child's creation
The code below is run at each child's creation
Code Block let rangeX = SKRange(lowerLimit: indexSpacing, upperLimit: indexSpacing) let contraintX = SKConstraint.positionX(rangeX) let rangeY = SKRange(lowerLimit: (self.size.height/2), upperLimit: (self.size.height/2)) let contraintY = SKConstraint.positionY(rangeY) self.constraints = [contraintX, contraintY]