title: Bullet becomes bullet hole
body: <p>In my project, I have gun. My bullet uses rigidbody and spawns at the barrel of the gun when I fire. My bullet bounces through walls , sometimes it goes through walls. </p>
  
  <p>Well I know, in physics raycast it's very simple:</p>
  
  <pre><code>public GameObject par;
  public int damage;
  
  void Update()
  {
      RaycastHit hit;
      Ray ray = Camera.main.ScreenPointToRay(new Vector3(Screen.width / 2, Screen.height / 2, 0));
  
      if (Input.GetMouseButtonDown(0))
      {
          if (Physics.Raycast(ray, out hit, 100))
          {
              GameObject particleClone = Instantiate(par, hit.point, Quaternion.LookRotation(hit.normal)) as GameObject;
              Destroy(particleClone, 2);
              hit.transform.SendMessage("ApplyDamage", damage, SendMessageOptions.DontRequireReceiver);
          }
      }
  }
  </code></pre>
  
  <p>How do I do this in rigidbody?
  Bullet becomes a particle system or a bullet hole image.</p>
  
  <p>Should I use <code>OnCollisionEnter()</code> or <code>OnTriggerEnter()</code>?</p>
  
  <p>How do I make it a bullethole image or a particle system?</p>