We're pretty much done with setting up our super simple scene. Now, let's add some AI agents to see if it works:
- We'll use our tank model here. If you're working with your own scene and don't have this model, you can just put a cube or a sphere entity as an agent. It'll work the same way:
- Add the Nav Mesh Agent component to our tank entity. This component makes pathfinding really easy. We do not need to deal with implementing pathfinding algorithms such as A* anymore. By just setting the destination property of the component during runtime, our AI agent will automatically find the path itself.
- Navigate to ...