The previous post is a bit of a waste now as all you need to set is the following
btQuaternion btq = transform.getRotation();
CC3Vector4 quaternion = CC3Vector4Make(btq.getX(), btq.getY(), btq.getZ(), -btq.getW());
Notice the
-btq.getW()
One silly
Duncan.
Very nice code!!
ReplyDeleteBut why is -rot.getW() negative??