The agents now move from way-point to way-point, in order, beginning with way-point 0, then continuing down the chain. The ones that started away from way-point 0 move toward way-point 0. The local avoidance system is working, so that agents traveling along the same path do not collide with each other. The navmesh is used to calculate the optimal path from way-point to way-point.
Here is the new NavAgentExample script from this week, for getting the agent to follow paths between way-points via the navmesh:
Work on this will continue next week.




No comments:
Post a Comment