Introduction to Sprite Kit with Swift 3 – Part 7

Detecting Physics Contacts Between Bodies

Introduction to Sprite Kit with Swift 3 video tutorials 7

Detecting Physics Contacts Between Bodies

In this video tutorial, we’ll add an SKPhysicsContactDelegate to the class, then add a didBegin contact statement to listen out for physics notifications from bodies. This requires setting the categoryBitMask and contactTestBitMask on the player and a hypothetical building object that we add this lesson.