OnTriggerEnter is not called
Briefly, this is my problem:
I use a sphere trigger Collider to detect if the player is in air or not in order to jump. Sometimes the OnTriggerEnter function is not called and the player can't jump. I used Debug.Log() and I noticed that it usually happens if the trigger interacts with multiply Colliders (not always though).
I've made some researches but looks like nothing should be wrong and I don't understand why this happens.
Any help would be appreciated. Thank You in advance.
I must add that sometimes instant of OnTriggerEnter(), the OnTriggerExit() function is called.
Answer by $$anonymous$$ · Dec 29, 2016 at 11:00 PM
Well after 30 min of posting the question I realized that I should not had been using OnTriggerEnter() but OnTriggerStay() instant.
Your answer
Follow this Question
Related Questions
OnTriggerEnter no longer works 1 Answer
Trigger not detected 0 Answers
Calling "OnTriggerEnter" when a parent object has a rigidbody 0 Answers
ontriggerexit not working 1 Answer
OnTriggerExit2D doesn't work when one of gameObject setActive false. 0 Answers