How can I create a Tether or LinkGun?

Hi, I’m having trouble figuring out a script for making to different objects that attach to eachother, I guess I’d need them to parent eachother but I’m unsure, can anyone help me please?

This is the approach I’ve taken.

function OnCollisionEnter(collision : Collision) {
//collision

}
function Update () {
}

gameObject.tag = "Object";
//If the object collided with has the tag "Object" then attach to it.
//Then the attach code

The Code Onward baffles me :stuck_out_tongue: Can anyone help me please?

This code is Used on a piece of geometry which is fired by the left click of the mouse, I’ll have a code similar to it for the right click shot.

So there are two different bullets, One attaches to something with the tag “Object” (Left Click) And the other attaches to something with the tag “Object” also but it sends a signal to the other bullet making it follow the (Right Click) Bullet.

Does anyone know how to do something like this or have previous experience, if so please help me this is a Vital code for my project. I’ve also come across this http://unity3d.com/support/documentation/ScriptReference/Transform-parent.html but have no idea what to do with it :stuck_out_tongue:

Video Example http://www.youtube.com/watch?v=5pLBtwUUG-s

Thanks for reading.

Look around for how to make a rope, Unity Answers and this wiki link are good starting places. Then connect the two ends of the ropes to both objects. With the physics hinges, you don’t have to worry about parenting - you just have to set up the hinges correctly.