NOT true is true?!

What the current code is checking: If the character is NOT falling and is NOT swimming it returns true. It could be that the Is Swimming node is not getting the correct data, or that you have set the default value to True.

Here is how an AND node works:

Input A Input B Output
0 0 0
0 1 0
1 0 0
1 1 1

You could do a slight “optimization”, remove the NOT nodes and use an NAND node instead.

Here is how a NAND node works:

Input A Input B Output
0 0 1
0 1 1
1 0 1
1 1 0
1 Like