Page 1 of 1

Suggestion: Quaternion property helper parse degrees too

Posted: Fri Dec 16, 2011 01:07
by pav
I admit I don't really understand what quaternions are and why "gimbal locks" are so bad. However:

0.7
<Property name="ZRotation" value="z:270" />

0.8
<Property name="Rotation" value="w:-0.7071067811865475 x:0 y:0 z:0.7071067811865476" /> (I think) :shock:

I suggest an additional format that allows degrees (i.e. <Property name="Rotation" value="x:0 y:0 z:270" /> -- "w" missing).

What do you think?

Re: Suggestion: Quaternion property helper parse degrees too

Posted: Fri Dec 16, 2011 10:04
by Kulik
I agree, I am willing to review the patch/pull request. And gimbal locks get really bad when you start animating :)

Re: Suggestion: Quaternion property helper parse degrees too

Posted: Fri Dec 16, 2011 11:23
by pav
Excellent! It shouldn't be more that 2-3 lines of code but I will do it properly to become familiar with the process. :D