{"id":65,"date":"2014-07-08T11:30:33","date_gmt":"2014-07-08T02:30:33","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=65"},"modified":"2014-07-08T11:58:37","modified_gmt":"2014-07-08T02:58:37","slug":"android%e7%ab%af%e6%9c%ab%e3%81%a7%e3%82%aa%e3%82%ad%e3%83%a5%e3%83%bc%e3%83%a9%e3%82%b9%e3%82%82%e3%81%a9%e3%81%8d","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=65","title":{"rendered":"Android\u7aef\u672b\u3067\u30aa\u30ad\u30e5\u30fc\u30e9\u30b9\u3082\u3069\u304d"},"content":{"rendered":"<p>\u30b9\u30af\u30ea\u30d7\u30c8<\/p>\n<pre class=\"brush: jscript; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\n#pragma strict\r\nvar myTransform:Transform;\r\nfunction Start () {\r\nInput.gyro.enabled = true;\/\/ android ha must item dayo-\r\nmyTransform = transform;\r\n\r\n}\r\n\r\nfunction Update () {\r\nvar gyro:Quaternion = Input.gyro.attitude;\r\nvar myAxis:Quaternion = Quaternion.AngleAxis(90, Vector3.up);\r\nmyAxis = Quaternion.AngleAxis(90.0, Vector3.right);\/\/jiku wo kaeru\r\ngyro.x *= -1.0;\r\ngyro.y *= -1.0;\r\nmyTransform.transform.localRotation = myAxis * gyro;\r\n}\r\n<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u306f\u4ee5\u4e0b\u306b<\/p>\n<p><a href=\"https:\/\/www.dropbox.com\/s\/rsc9tx0qu61h24a\/stereocamSample.unitypackage\">https:\/\/www.dropbox.com\/s\/rsc9tx0qu61h24a\/stereocamSample.unitypackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30af\u30ea\u30d7\u30c8 #pragma strict var myTransform:Transform; function Start () { Input.gyro.enabled = true;\/\/ android ha mu &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=65\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Android\u7aef\u672b\u3067\u30aa\u30ad\u30e5\u30fc\u30e9\u30b9\u3082\u3069\u304d<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":8,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":73,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions\/73"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}