コード例 #1
0
    void Start()
    {
        prevParam = 0.0f;
        manager   = GetComponent <SteeringManagerComponent>();
        Heuristic heuristic = new EuclideanHeuristic();

        finder   = new ASearch(heuristic.Heuristic);
        follower = new CoherentPathFollower();
        manager[moveBehavior].SetEnabled(false);
        manager[moveBehavior].SetFloat("ArriveRadius", lookAhead * 0.75f);
        target = new PointActor(Vector3.zero);
        manager[moveBehavior].SetActor("Target", target);
    }
コード例 #2
0
    void Start()
    {
        prevParam = 0.0f;
        manager = GetComponent<SteeringManagerComponent>();
        Heuristic heuristic = new EuclideanHeuristic();

        finder = new ASearch(heuristic.Heuristic);
        follower = new CoherentPathFollower();
        manager[moveBehavior].SetEnabled(false);
        manager[moveBehavior].SetFloat("ArriveRadius", lookAhead * 0.75f);
        target = new PointActor(Vector3.zero);
        manager[moveBehavior].SetActor("Target", target);
    }