Make the Output of the Look At Node Euler Rotation

The Look At node previously output a quat for the rotation, which is
inconsistent and incompatible with the other logic nodes such as
Set Rotation.
This commit is contained in:
Zicklag 2018-11-01 16:50:53 -05:00
parent 827b378713
commit 43acf28fc8

View file

@ -23,6 +23,6 @@ class LookAtNode extends LogicNode {
v2.setFrom(vto).sub(vfrom).normalize();
q.fromTo(v1, v2);
return q;
return q.getEuler();
}
}