title: how to destroy moving object after collision with falling rigidbody body object in unity
body: <p><strong>SCENERIO</strong>
  I have a an sphere with sphere collider and another prefab with rigid body problem is that when i am moving the sphere on touch then sphere donot detroy after the collision with falling rigibody object.Sphere only detory when i donot move the object then it collide with the falling rigidbody object.</p>
  
  <p><strong>The Code attach with sphere</strong></p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  public class moving : MonoBehaviour {
  float speed=100f;
  public GameObject hero;
  void Start () {
      }
      // Update is called once per frame
  void Update () {
  
  
  
              if (Input.touchCount &gt; 0) {
  
              // The screen has been touched so store the touch
                      Touch touch = Input.GetTouch (0);
  
  
  
                      if (touch.phase == TouchPhase.Stationary || touch.phase == TouchPhase.Moved) {
  
                              // If the finger is on the screen, move the object smoothly to the touch position
                              Vector3 touchPosition = Camera.main.ScreenToWorldPoint (new Vector3 (touch.position.x, touch.position.y, 100));                
                              transform.position = Vector3.Lerp (transform.position, touchPosition, Time.deltaTime * speed);
  
                      }
  
              }
  
      }
  
  void OnCollisionEnter(Collision coll){
  
      Debug.Log(coll.gameObject.name);
  
      if (coll.gameObject.name == "Cube(Clone)") {
          Debug.Log(coll.gameObject.name);
              Destroy (hero); 
      }
  
  
  }
      }
  </code></pre>
  
  <p><strong>The Code Attach With Falling rigibody body object</strong></p>
  
  <pre><code> void Start () {
  
      InvokeRepeating ("spawn", delay, clone_delay);
  
  }
  
  void spawn () {
      Instantiate (cube, new Vector3 (Random.Range (6, -6), 10, 0), Quaternion.identity);
  
  }
  </code></pre>