This is really a nice example. You draw objects with your finger and they almost come to life: Run with debug drawing to see the bodies structure: Note that chain shapes cannot collide with other chain shapes in box2d. Instead we create bodies with multiple polygon shapes. You can play...
www.b4x.com