Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

oncollisionenter

void OnCollisionEnter(Collision collision)//Make sure to put this out of Voids
    {
        if (other.gameObject.tag == "Object") 
         {
             Debug.Log ("Collided");
         }
    }
 
PREVIOUS NEXT
Tagged: #oncollisionenter
ADD COMMENT
Topic
Name
6+9 =