Get Updates By E-mail 

Article Written By:
Johann Dowa

Tutorial: An Introduction To SpriteKit Physics

  •  
  •  
  •  
  •  
  •  

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments