Delete Distance Node
Remove this because the same can be achieved with "Vector Math"
This commit is contained in:
parent
af284b8937
commit
37e04689d5
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue