Ejemplo n.º 1
0
    public virtual void Update()
    {
        //if (gridController != null) {
        //Cell cellBelow = gridController.curFlowField.GetCellFromWorldPos(gameObject.transform.position);
        //Vector3 moveDirection = new Vector3(cellBelow.bestDirection.vector.x, 0, cellBelow.bestDirection.vector.y);

        //dest = moveDirection;

        //}
        //print(GetSteering().linear);
        agent.setSteering(GetSteering(), weight);
    }