title: Collision Detection for fast moving game object in Unity
body: <p>I am working on building a basic space shooter game but am having trouble with a trigger collider. </p>
  
  <p>In the game, I have a Bullet prefab that has a Capsule Trigger Collider attached to it and the enemy is right now a basic cube with a box collider attached to it. </p>
  
  <p>When I run the game I start shooting the bullets and the Enemy cube doesn't disappear until after a few shots. </p>
  
  <p>Here is my code for the bullet prefab:</p>
  
  <pre><code>void OnTriggerEnter(Collider col) {
          if (col.tag == "Enemy") {
              Destroy (col.gameObject);
          }
      }
  </code></pre>
  
  <p>And a screenshot of my Attributes of each game object:</p>
  
  <p>Bullet Prefab:</p>
  
  <p><a href="https://i.stack.imgur.com/WsHwv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WsHwv.png" alt="Bullet Prefab"></a></p>
  
  <p>And here is the enemy cube:</p>
  
  <p><a href="https://i.stack.imgur.com/b4SFs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b4SFs.png" alt="enter image description here"></a></p>
  
  <p>Here is a link to a video of what is happening...</p>
  
  <p><a href="https://youtu.be/NjHK6oVP0OQ" rel="nofollow noreferrer">https://youtu.be/NjHK6oVP0OQ</a></p>