Week 6 Part 2 - AI Perception

AI Perception

In addition to solving the problem of AI pathfinding this week, I also did some related research and some simple tests on AI Perception. In our game, our Alien will have a certain degree of perception, whether it is vision, hearing, or damage perception.

I have successfully experimented with the visual function of AI this week. Although I haven't had the opportunity to convert the data of AI seeing people into some actions. I don't think it will be very difficult. The way I was thinking is to make some modifications to the AI's behavior tree, that is, tell the AI what to do when it perceives something.

Implement Explanation

1. It is the same as doing pathfinding before, we first make 4 necessary objects for our AI, namely AI character, AI controller, behavior tree, and blackboard.

2. Then it is to add perception capabilities to our AI, go to our AI character, and add AI Perception and AI Perception Stimuli Source to it. These two tell Unreal which senses our AI can have and which senses it can get information from.

3. Finally, we can add senses to our AI. In AI Perception, we added the senses we want for the AI. What I added was the vision of AI (Note: here we should pay attention to turning on the people who want to be perceived, and you can’t see it if you don’t turn on for AI). Secondly, it is to add information from vision to AI Perception Stimuli Source, otherwise, AI will not be able to see even if it has senses.

AI Perception


AI Perception Stimuli Source

Demo


Comments