Delete Distance Node

Remove this because the same can be achieved with "Vector Math"
This commit is contained in:
Sandy 2020-03-16 22:22:47 +09:00 committed by GitHub
parent af284b8937
commit 37e04689d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +0,0 @@
package armory.logicnode;
import iron.math.Vec4;
class DistanceNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function get(from: Int): Dynamic {
var vector1: Vec4 = inputs[0].get();
var vector2: Vec4 = inputs[1].get();
if (vector1 == null || vector2 == null) return 0;
return iron.math.Vec4.distance(vector1, vector2);
}
}