{"action":"opened","issue":{"url":"https://api.github.com/repos/pdelia/away3d/issues/281","labels_url":"https://api.github.com/repos/pdelia/away3d/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/pdelia/away3d/issues/281/comments","events_url":"https://api.github.com/repos/pdelia/away3d/issues/281/events","html_url":"https://github.com/pdelia/away3d/issues/281","id":85828399,"number":281,"title":"Setting rotationX property on Object3D results in rotation in the opposite direction","user":{"login":"pdelia","id":12096091,"avatar_url":"https://avatars.githubusercontent.com/u/12096091?v=3","gravatar_id":"","url":"https://api.github.com/users/pdelia","html_url":"https://github.com/pdelia","followers_url":"https://api.github.com/users/pdelia/followers","following_url":"https://api.github.com/users/pdelia/following{/other_user}","gists_url":"https://api.github.com/users/pdelia/gists{/gist_id}","starred_url":"https://api.github.com/users/pdelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdelia/subscriptions","organizations_url":"https://api.github.com/users/pdelia/orgs","repos_url":"https://api.github.com/users/pdelia/repos","events_url":"https://api.github.com/users/pdelia/events{/privacy}","received_events_url":"https://api.github.com/users/pdelia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pdelia/away3d/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/pdelia/away3d/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/pdelia/away3d/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-07T00:39:41Z","updated_at":"2015-06-07T00:39:41Z","closed_at":null,"body":"#101 Issue by __GoogleCodeExporter__, created on: 2015-04-24T07:51:48Z\n\n```\nWhat steps will reproduce the problem?\n1. Construct an Object3D\n2. Set the rotationX using the rotationX setter\n3. Inspect the transform of the Object3D.  Notice that the x rotation is \nopposite what it should \nbe\n\nTry the following code:\n\n    \t\tvar matrix:MatrixAway3D = new MatrixAway3D();\n    \t\tmatrix.rotationMatrix(1, 0, 0, 90 * Math.PI / 180);\n    \t\ttrace(\"matrix after matrix.rotationMatrix of 90: \\n\" + matrix);\n    \t\t\t\n    \t\tvar object3D:Object3D = new Object3D();\n  \t\tobject3D.rotationX = 90;\n \t\ttrace(\"object 3D after setting rotationX to 90: \\n\" + object3D.transform);\n\nWhat is the expected output? What do you see instead?\n\nI would expect the output to be:\n\nmatrix after matrix.rotationMatrix of 90: \n1\t\t0\t\t0\t\t0\n0\t\t0\t\t-1\t\t0\n0\t\t1\t\t0\t\t0\n0\t\t0\t\t0\t\t1\n\nobject 3D after setting rotationX to 90: \n1\t\t0\t\t0\t\t0\n0\t\t0\t\t-1\t\t0\n0\t\t1\t\t0\t\t0\n0\t\t0\t\t0\t\t1\n\nWhat I get instead is:\n\nmatrix after matrix.rotationMatrix of 90: \n1\t\t0\t\t0\t\t0\n0\t\t0\t\t-1\t\t0\n0\t\t1\t\t0\t\t0\n0\t\t0\t\t0\t\t1\n\nobject 3D after setting rotationX to 90: \n1\t\t0\t\t0\t\t0\n0\t\t0\t\t1\t\t0\n0\t\t-1\t\t0\t\t0\n0\t\t0\t\t0\t\t1\n\n\nWhat version of the product are you using? On what operating system?\ntrunk/fp10/Away3D, on Mac OS X 10.6.2\n\nPlease provide any additional information below.\n\nThe problem appears to be this line in Object3D, although I'm not sure what the \nimplications are \nof changing it:\n\n462             _quaternion.euler2quaternion(_rotationY, _rotationZ, \n-_rotationX); // Swapped\n\n\n```\n\nOriginal issue reported on code.google.com by `poshaugh...@gmail.com` on 5 Mar 2010 at 7:35"}}