GOAP
GOAP System Overview
Introduction to GOAP
Goal-Oriented Action Planning (GOAP) is an AI architecture used in Project Alien Utopia to create dynamic and realistic agent behaviors. GOAP allows AI agents to formulate plans to achieve goals based on the current world state, available actions, and their costs.
Project Implementation
Key Components
The GOAP system in Project Alien Utopia consists of several key components:
- Base GOAP Library - Located in
ProjectAlienUtopia/Packages/com/crashkonjin.goap
- Core GOAP Extensions - Located in
/Code/Core/Goap
- In-Game AI - Located in
/Code/AI
Getting Started
To begin working with the GOAP system, we recommend first understanding the basic concepts of GOAP, then exploring our architecture, and finally looking at specific examples in our codebase.
Scene Setup
- Add EntityController, ItemController (GameObject/System) to the scene
- Add GoapController (GameObject/System) to the scene
- Add an Alien (GameObject) to the scene
- Navigate to the game object: Alien/Code -> Inspector -> Alien Job script
- Set JobType to Test