<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kan_kikuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/kan_kikuchi/</author_url>
  <blog_title>(:3[kanのメモ帳]</blog_title>
  <blog_url>https://kan-kikuchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>この記事でのバージョン Unity 5.5.0p1 はじめに Rigidbody2Dはデフォルトの状態だと、一定時間動かない場合はSleep状態となり、衝突を判定しなくなります。なお、Sleep状態となると以下のようにCollider2Dの色が薄くなります。 上記の例では二つのオブジェクトにRigidbody2DとCollider2Dを付け、右のオブジェクトに以下のようなに衝突時にログを出すようなコンポーネントを付けています。 private void OnTriggerStay2D (Collider2D other){ Debug.Log(other.gameObject.name); }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FRigidbody2D_Sleep&quot; title=&quot;Rigidbody2DがSleepして衝突しなくなる問題【Unity】 - (:3[kanのメモ帳]&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/k/kan_kikuchi/20170115/20170115145448.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-13 08:43:53</published>
  <title>Rigidbody2DがSleepして衝突しなくなる問題【Unity】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/Rigidbody2D_Sleep</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
