title: Detecting a collision between two colliders
body: <p>I'm developing a game in unity using UnityScript. I've initially created two objects, a sphere and a cube, having respective colliders. Now I'm trying to detect a collision between them using the below UnityScript function. But I'm not able to detect collision. I've also added a rigid body component to both of them. How can I detect a collision?</p>
  
  <pre><code>function OnCollisionEnter(col : Collision)
  {
      if(col.collider.tag=="Cube")
      {   
          Debug.Log("collision");
      }
  </code></pre>