Page 1 of 1

On Trigger Enter Doesn't Start Conversation

Posted: Tue Apr 23, 2019 2:34 pm
by Timeslip
Hi,

I'm having difficulty with getting a conversation to trigger when a character enters a box collider.

The trigger area is set up like this:
Image

The character is set up like this:
Image

The box collider on the character is tagged as Player, but is a child of other objects with different tags (one of which has a capsule collider). I've tried adding these tags to the conditions, and disabling the capsule collider. Have also tried just starting the conversation on start, which works. Probably missing something small (and stupid) but if you could give me a nudge, would appreciate it!

Re: On Trigger Enter Doesn't Start Conversation

Posted: Tue Apr 23, 2019 4:27 pm
by Tony Li
Hi,

Trigger colliders don't register collisions with each other. One of them has to have Is Trigger unticked. What about getting rid of that child GameObject and relying on the capsule collider?

If possible, set the tag of the capsule collider GameObject to 'Player'.

It may also need a rigidbody, or put a rigidbody on the dialogue trigger and make it kinematic.

Re: On Trigger Enter Doesn't Start Conversation

Posted: Wed Apr 24, 2019 5:48 am
by Timeslip
Thanks Tony. Adding a rigidbody and setting it to kinematic worked.

Re: On Trigger Enter Doesn't Start Conversation

Posted: Wed Apr 24, 2019 7:51 am
by Tony Li
Great! Glad to help.