Hello,
I've actually some problem to raycast, because it detect the owner instead of other gameobject.
I explain my situation:
My character is supposed to detect other character of the same class who collide with him. When the collision is detected with the action "collision event enter", I draw a raycast (with a repeat interval to 0, so it's not taking too much performance) to detect if the collider is in front.
I set a layer filter to "Enemy" but the problem is my owner has the same filter, and that's normal because it's the same class.
I don't know how to prevent this.
Does someone have an idea why is doing this? Raycast should always ignore itself. And I don't know if it's because of the box collider.
I need your insight