How do I create a chain connecting two objects?

I tried using different joints but it makes my objects go flying. I want tug of war like physics. Eg. A rope connecting two objects but instead of rope i want it to be a chain. I am new to game development :P.

Hey, here a simple project that shows usage of line renderer.

you can modfy the code , add more points and simulate fake physics visuals too.

click here to download

If you want create object like rope try to use Hingle Joint component.

or

I guess you want to create a linked list of elements.


Linked list is a dataStructure which consists of several nodes. These Nodes hold some data and also contain the address(location in ram) of the previous node.

google Linked List for more.


To know implement linked list in unity.
click on
This tutorial link.

& this fourm page also.