Help with object in path

Hi!
I`m a bit confused with some part of code navigation, i have some doors in my map and i want to do a raycast to the door only if this is in my path. But how can i do it? like a navmesh obstacle?

You could take the object’s bounding box and the corners of the path, then check for each path segment if it goes through the object’s bounding box using Bounds.IntersectRay.

1 Like

Thank you, i will check it!