Skip to content
Snippets Groups Projects
Select Git revision
  • 244f1d34216e3e90cd77ec1d5c6110a6cf1bed7f
  • main default protected
2 results

Perception.cs

Blame
  • 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);    
        }
    
    }