This chapter covers SpriteKit’s physics engine and collision detection. We begin with a discussion of SKPhysicsBody—the class used to simulate collision detection. You will then turn on gravity in the game world and see how that affects the nodes. After that, you will add a touch responder to propel the playerNode up into space. I close this chapter with a discussion of how to handle node collisions.
What Is an SKPhysicsBody?
To simulate physics in a SpriteKit ...