Aleksa Ristic
Aleksa Ristic

Reputation: 2499

OnTriggerEvent doesn't detect some objects

I have object (ball) that is prefab initialized on game start. On that prefab i have Script, Mesh renderer and Sphere collider. Now when i cast my Spell, it is normally colliding with me and OnTriggerEvent detect character (me) but not the ball. Why is that?

If you need any part of code or something ask me.

Upvotes: 0

Views: 65

Answers (2)

Muhammad Faizan Khan
Muhammad Faizan Khan

Reputation: 10571

For Trigger, you have to keep in mind this table enter image description here

Ensure that isTriggerEnter is checked on ball. ref

Upvotes: 2

ikari.shinji
ikari.shinji

Reputation: 70

maybe your ball is on a different layer that does not collide with your default layer? check your layer settings

Upvotes: 0

Related Questions