<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rikoubou</author_name>
  <author_url>https://blog.hatena.ne.jp/rikoubou/</author_url>
  <blog_title>ソースに絡まるエスカルゴ</blog_title>
  <blog_url>https://rikoubou.hatenablog.com/</blog_url>
  <categories>
    <anon>unity</anon>
    <anon>C#</anon>
  </categories>
  <description>OculusGoでアプリが作りたくてUnityを勉強中です。 今回はオブジェクトの移動方法の備忘録です。用途としては「OculusGo用のカメラをコントローラーなどで移動させる」際に使うことになると思います。 １：絶対座標での移動方法 Unityのオブジェクトには「Transform」という項目があります。この「Position」の座標が絶対座標（どこから見てもその座標）になります。 この値を変更することでオブジェクトを移動させることができます。 以下のようなスクリプトを記述することにより、Positionの値を変更することができます。 /* 例えばOculus Goのカメラである「OVRCa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frikoubou.hatenablog.com%2Fentry%2F2018%2F06%2F12%2F180709&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/r/rikoubou/20180612/20180612173857.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-06-12 18:07:09</published>
  <title>【Unity】オブジェクトの移動方法（絶対座標・相対座標）</title>
  <type>rich</type>
  <url>https://rikoubou.hatenablog.com/entry/2018/06/12/180709</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
