Skip to content

1681-engine / index / invert

Function: invert() ​

ts
function invert<C>(child): BtNode<C>;

Defined in: src/ai/behaviorTree.ts:240

Swaps success and failure.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
childBtNode<C>

Returns ​

BtNode<C>

Released under the MIT License.