#OnTrigger event not working

1 messages · Page 1 of 1 (latest)

livid vigil
#

So the capsule collider should collide with your good-looking goblins, right?

#

OnTrigger event not working

topaz sky
#

the goodlookinggoblins should collide to the invisible collider

#

when i drag the goblin, debug log does not even trigger

livid vigil
#

Alright

#

Do goblins have trigger colliders?

topaz sky
#

yes

livid vigil
#

Please, show them

topaz sky
livid vigil
#

No, they don't

topaz sky
#

this is where the istrigger is enabled

livid vigil
topaz sky
#

both should be on?

livid vigil
topaz sky
#

the invisble one is enabled

livid vigil
#

Well, I forgot how those triggers work myself a bit

#

It's either so that any of 2 can be a Rigidbody and isTrigger set to false, another with isTrigger set to true, or the one with a script.

#

Anyway, it's wrong for you

topaz sky
#

o shoot

#

does it need to have a rigid body?

livid vigil
#

Yes

#

either your goblin or capsule

topaz sky
#

fck

#

it worked

#

thanks

#

didnt know that

livid vigil
#

Yes, it definitely works if capsule has a Rigidbody.

#

not sure whether it works too if goblin does, capsule not

topaz sky
#

i put the rigidbody to the goblin

#

thanks again sir