I'd like to be able to render flexible lines, or ropes, as below:
I thought about using a Line Renderer but it doesn't have the flexibility to render arbitrary curves.
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityThis effect can be easily accomplished with just hinge joints.
This above gif, was created without any code whatsoever. Each link in the chain is connected to the one above it via a Hinge Joint 2D. You can play around with the mass of the rope vs the object it is holding for better physic response
Point is, you shouldn't be using a line renderer for something like this.
Its by using SetPosition Property. Have a look at this.
http://docs.unity3d.com/ScriptReference/LineRenderer.SetPosition.html
Hope this helps.