To use just add the MegaWireAttach component to the object you want to hang on a wire and then select the wire object in the scene. The Alpha value will control the position along the wire.
The MegaWire object in the scene you want to hang this object on.
How far along the length of the wire object you want to hang your object, 0 is the very start, 1 the very end.
If your selected wire object has multiple strands you can choose the right strand by changing this value.
An offset value to use to help position your object correctly.
Ask the system to align the object along the wire, if your wire sags a lot then you may want to turn this on.
An extra rotation value to help you orientate your object as you need it.
Below are the public members of the MegaWireAttach class that you can control from script or via the Unity Animation system etc.
public MegaWire wire;
public float alpha;
public int strand;
public float offset;
public bool align;
public Vector3 rotate;
You must be logged in to post a comment.