Ejemplo n.º 1
0
    Vector3 Calculate()
    {
        force = Vector3.zero;
        if (wanderenabled)
        {
            force += wander.Jitter() * wander.weight;
        }
        if (seekenabled)
        {
            force += Seek(seekObject.transform.position);
        }

        return(force);
    }