Example #1
0
    // Update is called once per frame
    void Update()
    {
        aVector.DrawVector   = ShowA;
        sVector.DrawVector   = ShowS;
        cutVector.DrawVector = ShowC;

        Vector3 d = Dst.transform.localPosition - Src.transform.localPosition;

        aVector.Direction = d;
        aVector.VectorAt  = aPos.transform.localPosition;
        aVector.Magnitude = size;

        sVector.VectorAtDirLength(aVector.VectorAt + Vector3.right, d, aVector.Magnitude);
        cutVector.VectorFromTo(Src.transform.localPosition, Dst.transform.localPosition);
    }