Variables and transform rotation in logic editor
05 September 2016 17:11
Hello everybody,
I don't understand how variables work with transform rotation.
When I enter a number in the transform rotation node ( Z for example ), if I hit the trigger object, the transformed one rotates exactly the number of degrees I've entered in the transform node
But If, in this node, I choose instead a variable that I have previously defined as a number ( 5.00 for example ) then the transformed object rotation is not 5 degrees but anything else which seems to have nothing to do with the number I decided.
Is there a conversion I missed ?
Thank you by advance.
I don't understand how variables work with transform rotation.
When I enter a number in the transform rotation node ( Z for example ), if I hit the trigger object, the transformed one rotates exactly the number of degrees I've entered in the transform node
But If, in this node, I choose instead a variable that I have previously defined as a number ( 5.00 for example ) then the transformed object rotation is not 5 degrees but anything else which seems to have nothing to do with the number I decided.
Is there a conversion I missed ?
Thank you by advance.
05 September 2016 17:29
Hello!
Sounds like a bug
Could you please attach example blend file?
But If, in this node, I choose instead a variable that I have previously defined as a number ( 5.00 for example ) then the transformed object rotation is not 5 degrees but anything else which seems to have nothing to do with the number I decided.
Is there a conversion I missed ?
Sounds like a bug
Could you please attach example blend file?
06 September 2016 10:57
Here is the blend file.Yeah, there is a bug with rotation variables.
Thank you very much for the report
The bug fill be fixed in the next release and LTS patch.
Temporarily you can premultiply rotation variables by 0.0175 in "Math" node to get correct behaviour