Answers for "unity how to do collision detection with one object"

5

unity how to do collision detection with one object

void OnCollisionEnter(Collision collision)
  {
      if (collision.gameObject.tag == "theobjectToIgnore")
      {
          Physics.IgnoreCollision(theobjectToIgnore.collider, collider);
      }
Posted by: Guest on May-05-2020

Code answers related to "unity how to do collision detection with one object"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language