Ask Your Question

Revision history [back]

Quaternions are 4 element unit vectors, for some reason the code you've shown is only copying two of those four elements. Hence why the magnitude is smaller than it should be.

If you update the code so it copies all the elements of the quaternion (x y z and w) to the transform then hopefully this should fix your problem.

Let us know how you get on.