Late last year I mentioned a handy library for debugging SpriteKit physics called PhysicsDebugger which uses swizzling to draw outlines representing the physicsBody of your SpriteKit nodes.
Here’s a tutorial submitted by John Fisher providing a nice introductory guide on working with SpriteKit physics through the creation of a simple level in Xcode, and adding physics.
In the tutorial you’ll create a simple physics demo inspired by the Starbucks app, specifically you’ll go through the set up a Sprite Kit project, building a cup style shape in the level editor, adding some stars, then apply physics with the gravity being adjusted by the tilt of the iPhone through a rotation gesture recognizer.
You can find the tutorial over on the Atomic Object blog.
You can find the source code repository for the tutorial on Github here.
A nice tutorial on Sprite Kit physics.
Original article: Tutorial: An Introduction To SpriteKit Physics
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.