Fixes transformVec3 function for quaternion