Flint Particle System Forum - Quaternion to Matrix3D conversion bug? Mon, 12 Dec 2011 21:31:42 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Quaternion to Matrix3D conversion bug? http://flintparticles.org/forum/comments.php?DiscussionID=278&Focus=978#Comment_978 http://flintparticles.org/forum/comments.php?DiscussionID=278&Focus=978#Comment_978 Wed, 18 Nov 2009 23:50:19 +0000 saqoosha line 482 of Quaternion.as

return new Matrix3D( [
1 - 2 * ( yy + zz ), 2 * ( xy - wz ), 2 * ( xz + wy ), 0,
2 * ( xy + wz ), 1 - 2 * ( xx - zz ), 2 * ( yz - wx ), 0,
2 * ( xz - wy ), 2 * ( yz + wx ), 1 - 2 * ( xx - yy ), 0,
0, 0, 0, 1
] );

should be

return new Matrix3D( [
1 - 2 * ( yy + zz ), 2 * ( xy - wz ), 2 * ( xz + wy ), 0,
2 * ( xy + wz ), 1 - 2 * ( xx + zz ), 2 * ( yz - wx ), 0,
2 * ( xz - wy ), 2 * ( yz + wx ), 1 - 2 * ( xx + yy ), 0,
0, 0, 0, 1
] );
]]>
Quaternion to Matrix3D conversion bug? http://flintparticles.org/forum/comments.php?DiscussionID=278&Focus=995#Comment_995 http://flintparticles.org/forum/comments.php?DiscussionID=278&Focus=995#Comment_995 Fri, 04 Dec 2009 07:44:00 +0000 Richard