private void constructGenotype() { DefaultSEVA defaultGenes = new DefaultSEVA(); Genotype genotype = new Genotype(); var root = new Cylinder(defaultGenes); genotype.setRootElement(root); Sphere front = new Sphere(new DefaultSEVA("bob")); //front.setGeneticData("position",new Vector3(1, 0, 0)); front.setGeneticData("position", new WInt(25)); front.addExtension(new Square(defaultGenes)); Sphere back = new Sphere(new DefaultSEVA("a")); back.setGeneticData("Bienvenue à", new WString("GATTACA")); back.setGeneticData("position",new WVector3(-1, 0, 0)); Plate left = new Plate(new DefaultSEVA("a")); left.setGeneticData("position", new WVector3(0, 0, 1)); left.setGeneticData("rotation", new WVector3(1, 1, 0)); Plate right = new Plate(defaultGenes); right.setGeneticData("position", new WVector3(0, 0, -1)); right.setGeneticData("rotation", new WVector3(-1, -1, 0)); back.addExtension(right); back.addExtension(left); root.addExtension(front); root.addExtension(back); base.genotype = genotype; }