Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
themars2011

OnTriggerExit || OnCollisionExit doesnt work

Question

My function didnt get triggered so I tried it using Debug.Log, but it still says nothing! Both dont work! Maybe someone knows how to fix this? Unity version: 4.2;

Please login or register to see this code.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

As i remember after v3.0 unity changed something within trigger events. If you use CC, most likely you will have problems with OnTriggerExit(), that's why i'm trying to not use them at all.
Possible:
"Note that trigger events are only sent if one of the colliders also has a rigid body attached."

Here you can read many topics, about this problem problem:
Please login or register to see this link.

Share this post


Link to post
Share on other sites

  • 0

I already read the most of them, I also tried adding a rigidbody to the player, it still didnt work :(

Share this post


Link to post
Share on other sites
  • 0

I know you fixed it now but while I'm in the help section, another thing is you are trying to climb on trigger exit and the way I programmed it was to climb based on the current collision position between the trigger and player. When trigger exit occurs, it could possibly halt everything after. I believe I programmed it in unity v4 also

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...