Inverter
The Inverter node, or inverter, is one of the basic nodes in behavior trees. Its main function is to invert the result of its child node. If the child node returns Success, then the Inverter will return Failure, and vice versa.
Example of Use:
Here, the Fixed Status node returns Failure, but the inverter will return Success.
Operation:
- The Inverter executes its child node.
- If the child node returns
Success, the Inverter will returnFailure. - If the child node returns
Failure, the Inverter will returnSuccess. - If the child node returns
Running, the Inverter will also returnRunning.