- Home /
Question by
CentauriDev · Sep 26, 2020 at 06:49 PM ·
c#2dcollisioncollision detection
Child Collides If Its The Parents Collider
Hey,
So I have a sprite-based game. And I'm currently making FOV. So I have a cone sprite with edge colliders. I have a movement system for the enemies, but if my FOV sprite is active it doesn't work. When I turn the game object off it works fine!
The problem: I have an OnTriggerEnter2D() function on my parent(enemy), and my child(FOV) calls this function on the parent's script!
So here's what I need help with: -Why does it do that? -How do I stop/prevent it?
It's super weird, and I haven't seen this before. But I tested it, and yes the child object does in fact call it. Is this a new update? I think I missed or a huge bug?!
I'm using unity 2020 1.4f1
I would be super happy if you know whats going on and can help me! Thanks in advance!
Comment