+1

Comparing vectors with [if] node not working properly (obviously), what about a Un/Equal node?

TitouanM 9 years ago updated by behealed 8 years ago 1
I've discovered something by doing stuff without thinking about it, as I was trying to compare two Vectors3 using the "if" node.

The "if" node only compares the first coordinate of each element (i.e. the x values of two Vectors3) if you compare something other than 1 dimensional values.

Obviously, "inferior or superior" doesn't mean anything for Vectors when we're not talking about their magnitude, so I don't really know with Vectors are authorized as inputs for the A and B values?

Thus, maybe a Un/Equal node would be relevant to compare Vectors? Something that would compare each coordinate of A with each corresponding coordinate of B, and return C or D depending on if A and B are exactly the same or not.