AI Perception

AI Perception 감지 이벤트 처리

시각과 청각 감지는 AIController의 Perception Component가 받고 Blackboard Key로 행동 트리에 전달합니다.

AISense_Sight AISense_Hearing On Target Perception Updated

감지는 이벤트, 판단은 Blackboard

플레이어가 시야에 들어오면 TargetActor를 설정하고, 잃어버리면 LastKnownLocation이나 HasLineOfSight를 갱신합니다.

01

시야 설정

Sight Radius, Lose Sight Radius, Peripheral Vision Angle, Detection by Affiliation을 AI 성격에 맞게 조정합니다.

02

청각 설정

Make Noise나 Pawn Noise Emitter로 소음을 보내고 Hearing Range 안에서 위치를 LastHeardLocation에 저장합니다.

03

이벤트 분기

On Target Perception Updated의 Stimulus Was Successfully Sensed 값으로 획득과 상실을 나눕니다.