<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>subarunari</author_name>
  <author_url>https://blog.hatena.ne.jp/subarunari/</author_url>
  <blog_title>適当おじさんの適当ブログ</blog_title>
  <blog_url>https://www.subarunari.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>「緊急回避」とは、アクションゲームでよくある「前転時などに一定時間無敵になり、敵の攻撃回避を目的としたアクション」のことを指しています。 ほかにも良い方法があるかもしれませんが、お手軽さを優先して、対象のGameObjectのレイヤーを切り替える方法を取りました。「ダメージを受けてノックバックした時の無敵状態」の実現などにも使えます。 なお、私が作成しているゲームが2Dであるため、2Dを題材としています。 Layer Collision Matrixを設定する Layer Collision Matrix とは Layer Collision Matrix を使うことで、Colliderが衝突…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.subarunari.com%2Fentry%2F2017%2F07%2F01%2F020923&quot; title=&quot;Layer Collision Matrixを使って雑に「緊急回避」を実現する - 適当おじさんの適当ブログ&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/subarunari/20170701/20170701003421.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-01 02:09:23</published>
  <title>Layer Collision Matrixを使って雑に「緊急回避」を実現する</title>
  <type>rich</type>
  <url>https://www.subarunari.com/entry/2017/07/01/020923</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
