Hello,
I often find a bad problem using Raycast.
I’m using a ray to verify if two objects can see one to each other (no obstacles between them).
So I use Collider.Raycast() to check this visibility.
The problem is either “source” object and “target” object have Colliders, and when I send the ray from the source object, the ray immediately collide with the object self!
So I tried to use Physics.Raycast but the result is the same.
Now I can use Layers but, is there any other way to avoid this?
Thank you!