O'Reilly logo

Learn Unity ML-Agents - Fundamentals of Unity Machine Learning by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the carnivore

Building the carnivore creature will follow many of the same patterns we used for the plant and herbivore creatures. Open up Unity and follow this exercise to put the carnivore into the scene:

  1. Select the HerbivoreBrain in the Hierarchy window and type Ctrl + D (Command + D on macOS) to duplicate the object. Rename the new object CarnivoreBrain.
  1. Duplicate the Herbivore creature agent object and rename the new object Carnivore.
  2. Open the Carnivore object and select the Chicken model. Type Delete to delete the model.
  3. Drag the Dragon prefab from the Assets/_Gloomy_Animal/Meshes folder and drop it onto the Carnivore object in the Hierarchy window.
  4. Set the properties on all the Carnivore components as shown in the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required