<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tatsuyann</author_name>
  <author_url>https://blog.hatena.ne.jp/tatsuyann/</author_url>
  <blog_title>ゲーム開発メモ</blog_title>
  <blog_url>https://tatsunobu.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>足軽大将の命令で槍隊が突撃するようになったので、今度は槍の攻撃が当たるようにしていきましょう。 まず、槍にコライダーを追加して「is Trigger」にチェックを入れておきます。だいたい槍の上部をカバーするようにしました。 そして[spear]に[AttackSpear.cs]を付加します。これで槍と敵の接触判定をします。[AttackSpear.cs] void OnTriggerEnter(Collider col) { if(col.tag == &quot;RedArmy&quot;) { Debug.Log(&quot;敵に当たった&quot;); } } アニメーションの設定 ここからはアニメーションクリップの設定を行っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftatsunobu.hatenadiary.jp%2Fentry%2F2019%2F02%2F22%2F224112&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/tatsuyann/20190222/20190222222635.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-22 22:41:12</published>
  <title>槍で攻撃できるようにする</title>
  <type>rich</type>
  <url>https://tatsunobu.hatenadiary.jp/entry/2019/02/22/224112</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
