Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity check if other object is colliding

     public void OnCollisionEnter(Collision collision)
     {
         // Do your stuff here
     }
     
     //if your collider is a trigger
     public void OnTriggerEnter(Collider other)
     {
         // Do your stuff here
     }
 
PREVIOUS NEXT
Tagged: #unity #check #object #colliding
ADD COMMENT
Topic
Name
2+5 =