iTween.GeneratePunchPositionTargets C# (CSharp) Method

GeneratePunchPositionTargets() private method

private GeneratePunchPositionTargets ( ) : void
return void
    void GeneratePunchPositionTargets()
    {
        //values holder [0] from, [1] to, [2] calculated value from ease equation, [3] previous value for Translate usage to allow Space utilization, [4] original rotation to make sure look requests don't interfere with the direction object should move in:
        vector3s=new Vector3[5];

        //grab starting rotation:
        vector3s[4] = transform.eulerAngles;

        //from values:
        vector3s[0]=transform.position;
        vector3s[1]=vector3s[3]=Vector3.zero;

        //to values:
        if (tweenArguments.Contains("amount")) {
            vector3s[1]=(Vector3)tweenArguments["amount"];
        }else{
            if (tweenArguments.Contains("x")) {
                vector3s[1].x=(float)tweenArguments["x"];
            }
            if (tweenArguments.Contains("y")) {
                vector3s[1].y=(float)tweenArguments["y"];
            }
            if (tweenArguments.Contains("z")) {
                vector3s[1].z=(float)tweenArguments["z"];
            }
        }
    }
iTween