mirror of
https://github.com/Xevion/Boids.git
synced 2025-12-12 14:11:00 -06:00
29 lines
621 B
C#
29 lines
621 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BoidController : MonoBehaviour {
|
|
// Controller Attributes
|
|
public Rect space;
|
|
|
|
// Swarm Attributes
|
|
public int boidCount = 1000;
|
|
public float boidGroupRange = 1.0f;
|
|
|
|
// Bias changes how different rules influence individual Boids more or less
|
|
public float separationBias = 1.0f;
|
|
public float alignmentBias = 1.0f;
|
|
public float cohesionBias = 1.0f;
|
|
|
|
private List<Boid> _boids = new List<Boid>();
|
|
|
|
void Start() {
|
|
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|