// Start is called before the first frame update
 void Start()
 {
     col            = GetComponent <Collider>();
     rb             = GetComponent <Rigidbody>();
     dna_obj        = GetComponent <dna>();
     popM           = GameObject.FindGameObjectWithTag("Population Manager").GetComponent <population_manager>();
     rb.constraints = RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezeRotationZ | RigidbodyConstraints.FreezeRotationX;
 }
    void Start()
    {
        fitness = 0;
        popM    = GameObject.FindGameObjectWithTag("Population Manager").GetComponent <population_manager>();
        ray_dir = new List <Vector3>();
        ray_dir.Add(new Vector3(0, 0, 1));
        ray_dir.Add(new Vector3(1, 0, 1));
        ray_dir.Add(new Vector3(-1, 0, 1));
        ray_dir.Add(new Vector3(1, 0, 0));
        ray_dir.Add(new Vector3(-1, 0, 0));

        initialize_DNA();
    }