Comparing Vector


#1

Morning all,
any idea why this is only returning False?


I basically need to keep the lowest horizontal surface.

Thanks


#2

How certain are you that there’s actually a vector in that list that also contains those values?


#3

Because im looking to compare Vector with Vector… at least according to the nodes output :slight_smile:


#4

Try using Vector.IsAlmostEqualTo node.


#5

Works like a charm. Interesting
So would the underlying math be … not accurate enough?


#6

I’m not a huge expert, by I think the equality is heavily related to how the object is programmed to be compared to other instances, maybe this article helps.

See on the image below, using == on vectors yields false as they are not the same instance, but when using Equals it returns true as their properties are the same.

Please set the topic as solved if any answer responds to you question :slight_smile:


#7

For the record, i did tried with Equal also :slight_smile: same result in my case