- Home /
RTS Grid and usable bridges
Hi all, I have an rts project taking shape but I am trying to add bridges that can be crossed by all units the only problem is I am using a navmesh grid to determine passable areas but when I have an object placed for a bridge (currently just a cube) the area still stays red and units are unable to cross, any ideas on how to improve this and make bridges (cubes) passable would be greatly appreciated.
Thanks in advance for any help.
Answer by cjdev · Aug 07, 2015 at 08:46 PM
You can use Off-mesh Links to link together two separate navmeshes.
Thanks for info however I have a couple of issues with this. I only have free version of Unity so Off-mesh links not available but also I have a custom grid.cs file and It has reference to bridges and tunnels in the code but im not sure how to activate this...
I'm not quite sure what you mean but if you're just trying to add the bridge to the mesh you could add a plane with a transparent material over the blocks so that the baking process recognized the area as passable.
I'm not using a conventional navmesh the grid.cs and grid_edit.cs generate a customisable grid over the surface of the terrain via the manager object, I can then change the water height and all passable terrain shows white and impassable shows red i have added dropbox link for scripts so u can see what I am using https://www.dropbox.com/sh/rcdjkzx3wibhukr/AAAeQDbT0s7ewAJrUV2rWxjca?dl=0
Your answer
![](https://koobas.hobune.stream/wayback/20220611234848im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Pathfinding unity 3 Answers
Question about tactics movement 0 Answers
Rescaling of grid and tilemap causes it not to destruct properly 0 Answers
Navmesh question 1 Answer