How to set bounds to Scene physics body to bounce properly?
问题 I implemented a simple physics to bounce a sprite node , and everything worked except the node is bouncing off the screen for the top and bottom.It is fine for the sides, but it goes off the screen for top and bottom view. Here is the view: As you can see, I the ball is going off the screen at the bottom, where it perefectly touches the other three sides. This is because, I made a change to: self.physicsBody=[SKPhysicsBody bodyWithEdgeLoopFromRect:CGRectMake(self.frame.origin.x, self.frame