Select Git revision
Perception.cs
Perception.cs 488 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Perception
{
protected Agent proprietaire;
protected float rayon;
protected float angle;
public Perception(Agent agent, float r, float a) {
proprietaire = agent;
rayon = r;
angle = a;
}
public List<Observation> voir() {
return proprietaire.system.environnement.voisinage(proprietaire, rayon, angle);
}
}