Skip to content
Snippets Groups Projects
Select Git revision
  • 8d50cd2a8ecc07801fab376931c6f66be65d664c
  • master default protected
2 results

scodoc.py

Blame
  • Forked from Jean-Marie Place / SCODOC_R6A06
    Source project has a limited visibility.
    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);    
        }
    
    }