- Home /
OnTriggerEnter/Exit work in an unexpected way
Hi all,
I have a weird problem with OnTrigger functions - 'OnTriggerEnter' is called before even contact with other collider and 'OnTriggerExit' is not called immediately when leave collider... - just please look at attached Gif - I hope you'll get my point I could explain me why it is working that way :O I would expect that 'OnTriggerEnter' will be called when two colliders start overlap themselves and opposite for 'OnTriggerExit'.
Thanks
,
Answer by cvid · Mar 10, 2018 at 09:05 PM
Hmm.. It seems like there is another hidden collider connected to one of the boxes. Did you check the hierarchy?
Answer by AdrianHil · Mar 10, 2018 at 10:37 PM
Here is screenshot:
As you can see I have only two boxes - each one with only one collider attached but maybe there is something other wrong with my settings ?
meat5000 - I don't know what is Skin Depth - where I can check it ?
PS: The same happening for normal collision - from where this invisible border come from ?
Your answer
Follow this Question
Related Questions
Does OnTriggerStay don't detect a collision with a non-trigger collider? 1 Answer
Problems with the Trigger Collider (randomly fictional) 1 Answer
Having problems with playing a sound (C#) 2 Answers
Two colliders on GameObject with only one acting as trigger 2 Answers
Destroying objects within collision 1 Answer