Exemplo n.º 1
0
    void AssignFootToBalance()
    {
        Vector3 reverseBalance = balanceVector.normalized * -1;

        if (feet[footIndex] != null)
        {
            steppingFoot = feet[footIndex];
            if (!steppingFoot.IsStepping())
            {
                steppingFoot.BeginStep(reverseBalance * strideSize);
            }
        }

        footIndex++;
        if (footIndex >= feet.Length)
        {
            footIndex = 0;
        }
    }