Hi there, is my first post.
I have a problem with logic node. I use the “get Rotation” method on my cube for print angle in degrees or radians but I get this as angle (0,0,1). This is a bug.
I am currently using november SDK.
P.s: Installed git and update SDK … now there is new bug. The debug console set in Armory Project in blender not work and the error with angle is here.
Hi. @Angel3D. Welcome to the forum.
It seems better to report this on github(https://github.com/armory3d/armory/issues). I think it would be better to report the bug separately for “Get Rotation” and “Debug Console”.
This seems to be a bug, yes.
And I guess it is because of the switch/case in the node-code https://github.com/armory3d/armory/blob/master/Sources/armory/logicnode/GetRotationNode.hx. The case statements start at 1, while they should start at 0, as far as I know.
This way, all the outputs are shifted. I will have a closer look at it tomorrow, but for a quick (and temporary) workaround, you could try getting the Angle in radians from the “Angle (Degrees)” Socket.
Cleaning project and running it the bug is here with get radiants angle, not for get angle degrees.
Now report bug on github
As far as I can tell, all outputs are currently buggy (or should be).
The bug is, that you always get the wrong output. The node always gives you the output of the socket above the one that you are actually trying to get. As an example, if you want the angle in radians, the node will always give you the vector output (which is the axis around which the object was rotated). This is exactly what you are seeing. The issue is less noticeable with the angle (degrees) output, since the angle (radians) is also a number.