SpriteKit Physics Collisions

Last Revision:
Version 1.1, 2013-09-03
Updated the physics calls to use CGVector. Changed the ship engines to be a continuous force, not an impulse.
(Full Revision History)
Build Requirements:
Xcode 5.0 or later
Runtime Requirements:
Mac OS X v10.9 or later

SpriteKit Physics Collisions demonstrates how to use collision masks and contact masks to create interactions between different game objects. Movement within the game simulation is also performed using the physics subsystem. When a player presses keys on the keyboard, forces are applied to the spaceship to move it within the simulation. Many of the techniques in this sample are also applicable when writing Sprite Kit apps for iOS.