Merge pull request #1219 from katharostech/feature/vector-math-distance
Add a Distance Measurement to the Vector Math Node
This commit is contained in:
commit
e43193bd79
|
@ -40,6 +40,8 @@ class VectorMathNode extends LogicNode {
|
|||
v.z *= v2.z;
|
||||
case "Length":
|
||||
f = v.length();
|
||||
case "Distance":
|
||||
f = v.distanceTo(v2);
|
||||
}
|
||||
|
||||
if (from == 0) return v;
|
||||
|
|
|
@ -17,6 +17,7 @@ class VectorMathNode(Node, ArmLogicTreeNode):
|
|||
('Average', 'Average', 'Average'),
|
||||
('Cross Product', 'Cross Product', 'Cross Product'),
|
||||
('Length', 'Length', 'Length'),
|
||||
('Distance', 'Distance', 'Distance'),
|
||||
],
|
||||
name='', default='Add')
|
||||
|
||||
|
|
Loading…
Reference in a new issue