Wednesday 18 July 2012

Bullet to Cocos3d - btQuaternion to CC3Vector4

Oh, how I feel silly, I discovered that my quaternion definition is wrong.


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.

1 comment: