{"repo":"luxkun/ReGoap","free":true,"listed":false,"github":"https://github.com/luxkun/ReGoap","clone":"git clone https://github.com/luxkun/ReGoap.git","description":"Generic C# GOAP (Goal Oriented Action Planning) library with Unity3d examples","language":"C#","stars":1108,"topics":["unity","goap","ai","gamedev"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"ReGoap ReGoap is a generic C# GOAP (Goal Oriented Action Planning) library with Unity and Godot adapters. It gives you a planner that chooses a goal, builds a valid action sequence to satisfy it, and lets your runtime execute that sequence while reacting to world changes. What GOAP is GOAP is a decision-making technique for agents (NPCs, workers, enemies, simulation entities) where behavior is generated from world facts instead of hardcoded behavior trees or giant switch statements. In GOAP, you define: - World state facts (example: hasOre = true , chestSwordCount = 3 ) - Actions with preconditions and effects (example: SmeltIngot needs ore and produces ingot) - Goals as desired world states (example: chestSwordCount = 10 ) At runtime, the planner searches for a valid chain of actions that transforms the current world state into the goal state. Why this is useful: - You add/modify actions and goals without rewriting all transitions. - Agents can recover from changed world conditions via replanning. - The system naturally supports emergent sequences from reusable actions. What ReGoap does ReGoap provides: - A reusable, engine-agnostic planner core ( ReGoap/Core , ReGoap/Planner , ReGoap/Utilities ) - Runtime abstractions for agent, action, goal, memory, and sensors - Engine adapters (Unity and Godot) so you can plug into scene/component workflows - Debugging support (notably in Godot runtime debugger) At a high level, each planning cycle is: 1. Agent gathers possible goals. 2.","default_branch":null,"files":null,"tree":[],"storefront":"/r/luxkun","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/luxkun/ReGoap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}