goap
goap copied to clipboard
Goal Oriented Action Planning AI in Unity
Hi, not sure if this is still maintained but I come across this code from an article online and found an issue. When I had no goals assigned I was...
Thank you for the great examples! I am building a Rimworld/Prison Architect type game and GOAP is just what I was needing.
https://github.com/sploreg/goap/blob/d1cea0728fb4733266affea8049da1e373d618f7/Assets/Standard%20Assets/Scripts/AI/GOAP/GoapPlanner.cs#L160 ```cs // if the key exists in the current state, update the Value bool exists = false; foreach (KeyValuePair s in state) { if (s.Equals(change)) { //
I would suggest going backwards makes more sense when pathfinding to endState. https://github.com/sploreg/goap/blob/master/Assets/Standard%20Assets/Scripts/AI/GOAP/GoapPlanner.cs#L93 That way you give the AI a higher chance of finding a solution that works instead of...
I see in line 135 of GoapAgent.cs as shown below code, but there is _else condition at 170_ which solves a similar problem. can you explain in which condition this...