예제 #1
0
        public PathFollow(Entity _character, Path _path)
        {
            character = _character;
            path = _path;

            dummy = new DummyEntity();
            seek = new Seek(character, dummy);
        }
예제 #2
0
파일: Cohesion.cs 프로젝트: minas1/flocking
        public Cohesion(Entity _character, Flock _flock, float _neighbourhoodMaxDistance, float _neighbourhoodMinDotProduct)
            : base(_character, _flock, _neighbourhoodMaxDistance, _neighbourhoodMinDotProduct)
        {
            dummy = new DummyEntity();
            seek = new Seek(character, dummy);

            maxNeighborhoodSize = 30;
        }
예제 #3
0
        public ObstacleAvoidance(Entity _character, float _lookahead, string[] _tagsToAvoid)
        {
            character = _character;
            lookahead = _lookahead;
            tagsToAvoid = _tagsToAvoid;

            dummy = new DummyEntity();
            seek = new Seek(character, dummy);
        }
예제 #4
0
파일: Wander.cs 프로젝트: minas1/flocking
        // constructor
        public Wander(Entity _character, float _maxAcceleration, float _maxAngle, float _maxYSpeed, Bounds _bbox)
        {
            character = _character;
            maxAcceleration = _maxAcceleration;
            maxAngle = _maxAngle;
            maxYSpeed = _maxYSpeed;
            bbox = _bbox;

            target = new DummyEntity();
            seek = new Seek(character, target);
        }