1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

UE5の敵AIをBlackboardでデバッグする。視線を切ったら何が変わる?

1
Posted at

敵が壁越しに追いかけてくるとき、視認判定が終わっていないのか、移動目標が古いままなのかで修正箇所は違います。AI Sightだけを使うミニマップを想定し、まず直角の廊下を一つ用意します。以下は確認項目の例です。

試す操作 Blackboardに期待する変化 敵の行動
視界に入る TargetActor が設定される 追跡開始
角を曲がって視線を切る TargetActor が空になり、LastSeenLocation は残る 最後の目撃地点へ
捜索中に視界へ戻る TargetActor が再設定される 捜索を中断して追跡
見つからず捜索時間が尽きる 捜索用の座標または状態をクリア 巡回へ戻る

視線を切っても成功判定のままなら、まず感知イベントや視界・遮蔽物の条件を確認します。失敗判定が来ているのに追いかけるなら、Actorのキーが残っていないか、Behavior Treeの実行分岐が切り替わっているかを見ます。到達できない捜索地点がある場合は、感知と切り分けて Move To の結果も確認します。

Max Age は感知データの保持に関する設定です。「何秒捜索してから巡回に戻るか」を決めるなら、捜索側のタイマーと分けて扱うと原因を追いやすくなります。

参考:Epic Games公式 AI Perception/Behavior Tree Quick Start
https://dev.epicgames.com/documentation/en-us/unreal-engine/ai-perception-in-unreal-engine
https://dev.epicgames.com/documentation/en-us/unreal-engine/behavior-tree-in-unreal-engine---quick-start-guide

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?