<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TAKOYAKING</author_name>
  <author_url>https://blog.hatena.ne.jp/TAKOYAKING/</author_url>
  <blog_title>TAKOYAKING’s blog</blog_title>
  <blog_url>https://takoyaking.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>OnCollisionXXXとOnTriggerXXXの実行順序は以下のドキュメントによると イベント関数の実行順序 - Unity マニュアル 1. OnTriggerXXX 2. OnCollisionXXX となるようです。 どういう時に役に立つか？ ブロックを破壊した時に「跳ね返って欲しくない場合と跳ね返って欲しい場合」を作る場合、この実行順序の挙動を使って切り分けることができます。跳ね返って欲しい時はOnCollisionEnter内でGameObjectを破壊すれば、跳ね返りますし、跳ね返って欲しくない場合はOnTriggerEnter内でGameObjectを破壊する処理をすれば…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakoyaking.hatenablog.com%2Fentry%2Fcollision_trigger_exec_order&quot; title=&quot;Unity: OnCollisionXXXとOnTriggerXXXの実行順序 - TAKOYAKING’s blog&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/T/TAKOYAKING/20200819/20200819032700.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-26 09:00:00</published>
  <title>Unity: OnCollisionXXXとOnTriggerXXXの実行順序</title>
  <type>rich</type>
  <url>https://takoyaking.hatenablog.com/entry/collision_trigger_exec_order</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
