調ã¹ã¦ã¿ã iPhoneã®å é度ã»ã³ãµã使ã£ã¦æ¬ä½ã®è§åº¦ï¼Radï¼ãè¨ç®ããã window.addEventListener("devicemotion", function(evt){ var xg = evt.accelerationIncludingGravity.x; // 横æ¹åã®å¾æ var yg = evt.accelerationIncludingGravity.y; // 縦æ¹åã®å¾æ var zg = evt.accelerationIncludingGravity.z; // ä¸ä¸æ¹åã®å¾æ var angle={}; angle.y = Math.floor(Math.atan2(yg,zg)/Math.PI * 180); angle.x = Math.floor(Math.atan2(xg,zg)/Math.PI * 180); angle.z = Math.
{{#tags}}- {{label}}
{{/tags}}