<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>ウェブ</anon>
  </categories>
  <description>gamemakers.jp ゲームの当たり判定でカプセル形状が使われていることに関しての記事。 ゲームエンジン使っていると、当たり判定の形状は知っているけど、どう計算されているのかはあまり意識しないで済む。 カプセル形状の当たり判定で中心線間の最短距離が必要になるが、2つの線分の最短距離ってどう求めるのか、以前やった気がするのだが忘れてしまった。 バイオハザードヴィレッジで使われているコリジョンの例が出ていて興味深かった。人間の胴体が一つのカプセルではなく複数で構成されているのが意外だった。記事に書かれている通り、ゾンビはのけぞったりと普通の人間ではあまりしない動きをするからだろう。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F2023%2F10%2F16%2F195126&quot; title=&quot;当たり判定のカプセル - ゲームが作れるようになるまでがんばる日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-16 19:51:26</published>
  <title>当たり判定のカプセル</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/2023/10/16/195126</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
