/// <summary> /// Create an avoid behavior. /// </summary> /// <param name="flock">The flock.</param> public Avoid(Flock flock) : base(flock) { target = new PointActor(Vector3.zero); flee.Target = target; }
/// <summary> /// Create an separation behavior. /// </summary> /// <param name="flock">The flock.</param> public Separation(Flock flock) : base(flock) { }
/// <summary> /// Create a flocking behavior. /// </summary> /// <param name="flock">The flock.</param> protected FlockingBehavior(Flock flock) { this.flock = flock; }
/// <summary> /// Create a cohesion behavior. /// </summary> /// <param name="flock">The flock.</param> public Cohesion(Flock flock) : base(flock) { target = new PointActor(Vector3.zero); seeker.Target = target; }
/// <summary> /// Create an alignment behavior. /// </summary> /// <param name="flock">The flock.</param> public Alignment(Flock flock) : base(flock) { }