Check Trigger condition task receives child trigger events

Forums 💬 NodeCanvas ⚙️ Support Check Trigger condition task receives child trigger events

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17101
    rukesh
    Participant

      Hey guys,

      I wonder what am I doing wrong, or maybe it is a bug, here is the scenario:
      In the BT graph I use a binary selector with a Check Trigger task with Trigger Stay “check type” selected. I have a trigger collider on the graph owner (Monster) component and everything works just great. But when I add another trigger collider on one of the nested game objects my Check Trigger condition starts to receive OnTriggerExit events from this child object.

      It doesn’t matter if I leave the “Use self (Collider)” checkbox disabled or enable it and select the collider explicitly it still exits the Binary Selector node on a FALSE branch when the child trigger is exited.

      Is that a desired behavior or am I doing something wrong?

      #17104
      Gavalakis
      Keymaster

        Hello,

        I am sorry, but I can’t really replicate the problem you are facing :/ Child gameobject should not affect the condition in any way and there is also no reason for them to. Could it be that some of the your children gameobjects have a rigidbody which triggers the “root” (monster) trigger somehow?

        Is there the possibility for you to send me the project (or a small replication example project) to see what could be going wrong more closely, since this is definitely not the desired behaviour?
        Thank you.

        #17103
        rukesh
        Participant

          Thank you guys for the quick response. I was not able to reproduce it in an isolated environment either… Apparently this is issue in my code. Sorry for disturbing you, I had to do this before posting this issue.

          Thanks for developing and supporting the greatest asset in the asset store!

          #17102
          Gavalakis
          Keymaster

            Not a problem at all and thank you! I am really glad you like NodeCanvas 🙂

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.