<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sanukin39</author_name>
  <author_url>https://blog.hatena.ne.jp/sanukin39/</author_url>
  <blog_title>スマゲ</blog_title>
  <blog_url>https://smartgames.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Unityで端末の加速度センサを利用してみます。取得するのは端末の傾きです。■対象 iOS, Android端末■設定 利用OSのPlayer Settings を開いてConfigurationからAccelerometer Frequencyから取得する加速度のサンプリング回数を設定する 何かしら数値が入っていれば問題ない ■加速度センサの値取得 Input.accelerationから取得できる void Update(){ // 加速度センサの値を取得 Vector3 val = Input.acceleration; // サンプリング値を利用した処理を記述 } ■加速度センサを利用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmartgames.hatenablog.com%2Fentry%2F2016%2F06%2F23%2F004054&quot; title=&quot;Unityで端末の加速度センサを利用する - スマゲ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/sanukin39/20160622/20160622233124.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-06-23 00:40:54</published>
  <title>Unityで端末の加速度センサを利用する</title>
  <type>rich</type>
  <url>https://smartgames.hatenablog.com/entry/2016/06/23/004054</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
