Hi Guys,
I encountered a few messages of the same, it’s warning message when I imports some assets, after I clicked play, it will disappear.
Quaternion is invalid (0.000000, 0.000000, -0.216040, 0.992283) length=1.031299
Though it works,
(1) I would like to know why is it showing this warning message?
(2) How do I solve it & prevent it from happening next time?
Thanks in advance.
If your object’s orientation is where you want it, then just ignore it.
A quaternion vector, by definition, must be unit length (i.e. have a length of 1 (i.e. normalized)), otherwise the laws that map it to orientation in Euclidean space no longer apply. It will still work but the result of the rotation may not be what you expect.
The only real solution here is to open the model into a modeling program and make sure that its orientation is valid and hope that it normalizes the quaternion before committing it to file. Some modeling programs might even let you do this manually.