mirror of
https://github.com/Xevion/Boids.git
synced 2025-12-14 22:11:05 -06:00
fix access modifiers, start and update functions
This commit is contained in:
@@ -5,7 +5,7 @@ public class Boid {
|
||||
private Vector2 _position;
|
||||
private Vector2 _velocity;
|
||||
|
||||
Boid(Vector2 position, Vector2 velocity) {
|
||||
public Boid(Vector2 position, Vector2 velocity) {
|
||||
_position = position;
|
||||
_velocity = velocity;
|
||||
}
|
||||
@@ -20,7 +20,7 @@ public class Boid {
|
||||
}
|
||||
|
||||
// Returns the next position the Boid will be moving to
|
||||
Vector2 NextPosition(List<Boid> boids, float[] magnitudes) {
|
||||
public Vector2 NextPosition(List<Boid> boids, float[] magnitudes) {
|
||||
// Find the local flock
|
||||
List<Boid> flock = GetFlock(boids, 5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user