Is there a way to do rag doll physics with sprite kit?

I am working on a 2D game and I want my main hero when in contact with something to have a rag doll affect to him. Is there a way to do this with somehow setting up a skeletal system or something of that nature?

Yes, you can do a 2D ragdoll in Sprite Kit.


Break your character into the parts you can logically do so, based on graphics, probably... and then use physics joints (mostly hinges/pivots, known as PinJoints in iOS, with limits). You'll need to do all this by hand, and test the ranges of relative limits to get behaviour that's not entirely silly.


Unfortunately there's no physics editor for Sprite Kit, so this is going to take a LOT of time to get right.

> no physics editor for Sprite Kit


Yes there is no dedicated thing called 'physics editor' for SpriteKit. But in Scene editor you are able to set any kind of PhysicsBody to any sprite and test it in "Animate" mode. So is not it enough for said purposes. Or something is missing?

Are you able to set joints? Such that if a charcater were to run into a wall or something of that sort that their arms and legs would move around freely to make it look some what realistic

I don't see a way to add SKPhysicsJoint directly to the editor in xcode7. Perhaps you can achieve the same with nested SKSpriteNodes rotating around their anchor points.

Is there a way to do rag doll physics with sprite kit?
 
 
Q