I thought visualizing a behavior tree would be something like
if (condition == true)
{
//insert code here
//do case statements?
//sorry beforehand for the bad syntax
case:
if (true)
break;
end; //or i think its else case, etc
case:
if (true)
break;
end;
}
so I was wondering, if a tool like Behavior Trees on the asset store or the visual behavior tree designers and FSM, if they are worth it, or if they bring something to the table I dont understand?
Visual tools are very helpful for this. It’s one thing to write simple AI code in a script; that’s often the easy part. It’s an entirely different task to figure out what your AI agent is thinking during gameplay. With a good visual tool, you can simply inspect your AI GameObject to see what state it’s in and when it transitions to different states (or why it’s not transitioning when you expect it to).
I’ll check out some free behavior trees and see If I can undeerstand what youre getting at.
Edit: I downloaded one, and I think im beginning to see how they can be useful when doing visual debugging.