Reply To: Why does "istrigger" have to be checked? What if you want to collide with a rigid body, and have it trigger something, bu…

Forum Archive Why does "istrigger" have to be checked? What if you want to collide with a rigid body, and have it trigger something, bu… Reply To: Why does "istrigger" have to be checked? What if you want to collide with a rigid body, and have it trigger something, bu…

#23094
Jonathan Gonzalez
Participant

    If you want a collision you’d use “OnCollisionEnter”. It has pretty much the same process as the trigger functions. So you’ll have OnCollisionEnter, OnCollisionStay, OnCollisionExit. That’s for when you want something to hit something but not go through, like maybe a character running into a wall.

    Also to clarify the “isTrigger” checkbox, that tells Unity to treat that collider as a trigger. If you have that unchecked it will still act as a solid collider regardless of whether or not you’re using “OnTriggerEnter”.