AI architecture

Good day friends! I have a question for you. I’m going through smart AI tutorial https://www.youtube.com/playlist?list=PLNwKK6OwH7eW1n49TW6-FmiZhqRn97cRy and struggle with different issues. In the tutorial guy use states(like combat, passive, patrolling e.t.c.) and switch it via sense updates.

And I don’t get it. Why states logic appears in sense components? Isn’t better to leave sense just as source of notifications and make decisions about state in behavior trees? It’s impossible? Or do behavior trees have some performance issues?

How do you use senses and updates?

i agree, its better to keep the senses contained. the aicontroller can then bind to sense events

1 Like