Hi guys, I'm making an object move to the line path created by drawing on screen through touch (Using navmesh). My problem is - When i draw the line on non-walkable mesh (the black line), the object (the white capsule) is trying to move to that line , and as a result, moving for sometime on walkable mesh and getting stopped at the nearest end point to the line which is on non-walkable mesh. Now, I need the object not to move at all to the non-walkable mesh. Any suggestions out there ?? Thanks in advance
maybe check if a point is on a navmesh https://docs.unity3d.com/540/Documentation/ScriptReference/NavMesh.SamplePosition.html