In the 2002 version of Terrarium, developers had to code the brain on their own and this sometimes grew to thousands of lines of code. We, however, know that with the ML-Agents tools, we can let the creature program or build its own best solution using DRL. Open up Unity to the Terrarium scene and follow along in order to build the herbivore:
- Right-click (Command click on macOS) the Academy object in the Hierarchy window. From the context menu, select Create Empty. Rename the new object HerbivoreBrain.
- Add a Brain component to the object and set the properties as follows: