how to:
Make a chain of capsule collider objects attached with configurable joints - locked positions, free rotations. then create additional configurable joints with limited max distance between every 2, every 4 every 8 joints etc. The chain should be a power of 2 in length. Use a catmull rom to make it render more curvy.