'How can i draw a cable with touch in Unity (like vacuum cleaner plug cable)
I can drawing line with line renderer. But i want to pull that line with realistic effect like vacuum cleaner cable. video (for 5 sec)
I want to connect all the parts to body part with drawing a line. After than, they should unite with visual effect. (like vacuum cleaner cable) I just don't know how i can make this physics example scene
Solution 1:[1]
Try this :
https://www.youtube.com/watch?v=SY2npMqaOpc
and then Position should be the middle of the object 1 and object 2 that you want to connect.
Click on one object (pos1) with raycast click on 2 nd object (pos2) with raycast Now you have their positions and objects selected connect them (i don't know how you want to be the connection)
or do it manually separate codes for every connection
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Daniel Pirvu |