Get Updates By E-mail 

Article Written By:
Johann Dowa

iOS Library That Uses Swizzling To Draw Physics Bodies Makes Debugging Sprite Kit Physics Easier

  •  
  •  
  •  
  •  
  •  

Not too long ago I mentioned a nice library that makes performing common tasks with Sprite Kit easier, and I’ve also mentioned a nice set of iOS 7 source code examples including a basic sprite kit example.

Here’s a handy library for working with Sprite Kit physics called PhysicsDebugger from Thomas Zinnbauer.

One of the difficulties in working with Sprite Kit is that it can be difficult to debug physics behavior if you have a number of different objects with  different shapes of physics bodies.  PhysicsDebugger uses swizzling as the phyiscsBody has no accessible property and draws an outline around the real physics body of different objects.

Here’s an image from the readme showing PhysicsDebugger in action:

PhysicsDebugger

You can find PhysicsDebugger on Github here, and you can read more about PhysicsDebugger on the YMC website.

A handy library for debugging 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