From 43acf28fc8f377cbdcb5b4b832ec7f80cdafc7d6 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Thu, 1 Nov 2018 16:50:53 -0500 Subject: [PATCH] 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. --- Sources/armory/logicnode/LookAtNode.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/armory/logicnode/LookAtNode.hx b/Sources/armory/logicnode/LookAtNode.hx index 98133aa5..110cc1eb 100644 --- a/Sources/armory/logicnode/LookAtNode.hx +++ b/Sources/armory/logicnode/LookAtNode.hx @@ -23,6 +23,6 @@ class LookAtNode extends LogicNode { v2.setFrom(vto).sub(vfrom).normalize(); q.fromTo(v1, v2); - return q; + return q.getEuler(); } }