Unity AI Game Programming Second Edition by 2015

Unity AI Game Programming Second Edition by 2015

Author:2015
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


We'll have a directional light, the start and end game objects, a few obstacle objects, a plane entity to be used as ground, and two empty game objects in which we put our GridManager and TestAStar scripts. This is our scene hierarchy:

The scene Hierarchy

Create a bunch of cube entities and tag them as Obstacle. We'll be looking for objects with this tag when running our pathfinding algorithm.

The Obstacle node

Create a cube entity and tag it as Start.

The Start node

Then, create another cube entity and tag it as End.

The End node



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.