add Not Equal to Gate node logic

This commit is contained in:
t3du 2021-10-26 10:05:11 -03:00 committed by GitHub
parent f6dfc43dde
commit 6e255bcb05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,8 @@ class GateNode extends LogicNode {
switch (property0) {
case "Equal":
cond = Std.isOfType(v1, Vec4) ? v1.equals(v2) : v1 == v2;
case "Not Equal":
cond = Std.isOfType(v1, Vec4) ? !v1.equals(v2) : v1 != v2;
case "Almost Equal":
cond = Std.isOfType(v1, Vec4) ? v1.almostEquals(v2, property1) : Math.abs(v1 - v2) < property1;
case "Greater":