<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iad_otomamay</author_name>
  <author_url>https://blog.hatena.ne.jp/iad_otomamay/</author_url>
  <blog_title>レベルエンター山本大のブログ</blog_title>
  <blog_url>https://daiyamamoto.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>a-frame raycasterを使って高低差のある地形に沿って移動する - レベルエンター山本大のブログの続き 目的 a-frameではWASDキーおよび矢印キーでカメラの位置を移動させることができるものの、壁や物体への衝突判定は自分で作り込む必要があります。 以下の動画のように前進、右移動、左移動、後退のどの方向でも障害物に当たったら跳ね返されるようにすることがこの記事の目的です。 障害物に当たったら、その場にストップするという仕様も考えられますが、そうすると壁にめり込んだりというトラブルが発生しがちです。 めりこみを避けるためにぶつかったら、ちょっと跳ね返るという処理にしておきます。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F2021%2F05%2F05%2F114217&quot; title=&quot;a-frame raycasterを使って壁との衝突判定を実装する - レベルエンター山本大のブログ&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/i/iad_otomamay/20210504/20210504014123.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-05 11:42:17</published>
  <title>a-frame raycasterを使って壁との衝突判定を実装する</title>
  <type>rich</type>
  <url>https://daiyamamoto.hatenablog.com/entry/2021/05/05/114217</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
