I am creating a simple breakout game using SpriteKit and am having an issue where the ball seems to hit off the edge of the bricks even when they are stacked next to each other.
The ball should bounce as though it's bouncing off of a smooth surface, however, it's almost like the bricks' physics bodies aren't fully realized until after the ball has made the first contact.
I have tried several things to solve the problem such as overlapping the bricks by a few pixels, turning on usesPreciseCollisionDetection. However, these don't seem to be having any effect.
This is how I am creating the bricks' physics bodies:
brick.physicsBody = SKPhysicsBody(rectangleOf: brick.frame.size)
Is there something that I am missing, or is this an issue with SpriteKit?