<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>SaidaTaisei</author_name>
  <author_url>https://blog.hatena.ne.jp/SaidaTaisei/</author_url>
  <blog_title>pypy.com/</blog_title>
  <blog_url>https://taiboman.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>unityで（x,z）座標がわかっているときに、テレインの高さを取得する方法について書きます。 意外と使う機能だと思うのですが、あまり検索でもヒットしないため、書きます。 僕はgameobjectをtopビューで配置して、テレインの上に配置するのに使いました。 今から、例を書きます。 以下の画面のようにオブジェクトを配置します。 このとき、cubeがterrainと離れた位置にあるのがわかります。 cubeに以下のスクリプトをアタッチします。 そして、unityの再生ボタンを押します。 すると、以下の画面のようにテレインの高さにcubeが配置されました。 このようにして、平面座標がわかっていれ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaiboman.com%2Fentry%2F2019%2F09%2F12%2F220819&quot; title=&quot;UnityのTerrainの高さをスクリプトで取得する - pypy.com/&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/SaidaTaisei/20190912/20190912212311.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-12 22:08:19</published>
  <title>UnityのTerrainの高さをスクリプトで取得する</title>
  <type>rich</type>
  <url>https://taiboman.com/entry/2019/09/12/220819</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
