How to check if entire object is in or out of trigger box??

Hi,

I have an OnTriggerExit function that works as soon as part of my players collider has exited the trigger box. How do I make it so that OnTriggerExit checks if the entire player collider has exited and not just as soon as a tiny part of it is out?

Does this help?

1 Like

You do? I’ve never seen that before.

As far as I’m aware, that’s the default behavior.

Can you show an example where OnTriggerExit is being called before the entire collider has exited the trigger?

1 Like

Omg you are absolutely correct. I was fooled by what it looked like but after using Debug.Brea; in the OnTriggerExit function it’s actually the entire collider that is outside the trigger box. So I’ll adjust the trigger box :slight_smile: Thank you for helping out

It does for future reference, thank you :slight_smile:

1 Like