- Home /
Navmesh Agent breakes colliders
I have a gameobject that i wish to select with the mouse via raycast, but the thing is the moment i enable the navmesh agent on it collision detection completely stops for the game object. boath RayCast, and OverlapingSpheres fail to detect the existence of the gameobject (yet they wree able to detect with with no navmesh agent, and still can when i turn the navmesh agent off).
I had trouble with navmesh agents ignoring my ray casts as well. I found that my ray cast worked the first couple seconds and then no long detected anything. It might be a bug.
I ended up using boxcolliders as triggers. It is crude but worked for my game.
Your answer
Follow this Question
Related Questions
Moving cubes into a grid formation 1 Answer
How do you raycast from an object ignoring only that object? 0 Answers
How do I get a navmesh agent to stop at the edge of a collider? 0 Answers
Unity collision detection only for raycasts 1 Answer
Object jumps through roof when holding "Up" button? 1 Answer