- Unity 2018 Artificial Intelligence Cookbook(Second Edition)
- Jorge Palacios
- 61字
- 2021-07-16 18:11:27
How it works...
We cast a ray in front of the agent, and when the ray collides with a wall, the target object is placed in a new position, with consideration given to its distance from the wall and the safety distance declared, delegating the steering calculations to the Seek behavior; this creates the illusion of the agent avoiding the wall.