Jump to content

ability for units to build bridges spanning water


andy5995
 Share

Recommended Posts

What do you think about implementing a feature where units can build bridges across water? They'd have to be built on the shore of one piece of land and connect to the shore of another piece of land. Then they would of course block ship passage, but like other buildings, they can be destroyed by the enemy. The bridges would have to be wide enough for infantry to cross, and not be too narrow as to create a bottleneck that would cause game lag.

 

Perhaps the bridges would contain areas where infantry could be garrisoned and fire arrows.

  • Like 2
Link to comment
Share on other sites

3 hours ago, andy5995 said:

What do you think about implementing a feature where units can build bridges across water? They'd have to be built on the shore of one piece of land and connect to the shore of another piece of land. Then they would of course block ship passage, but like other buildings, they can be destroyed by the enemy. The bridges would have to be wide enough for infantry to cross, and not be too narrow as to create a bottleneck that would cause game lag.

 

Perhaps the bridges would contain areas where infantry could be garrisoned and fire arrows.

I could see a drag n drop system nearly identical to building walls. Cost deducted per section. Also, a max length.

  • Like 1
  • Confused 1
Link to comment
Share on other sites

8 hours ago, Loki1950 said:

But all that is not possible till we can allow units to walk/see the bridge mesh also tied to the pathfinder not seeing meshes either.

Enjoy the Choice :)

It gets worse. The pathfinder doesn't see the 3rd dimension, which presents quite a big problem when bridges involve having terrain that cannot be represented as planes. (see shallow water river and bridge above that for simple case).

I guess this can be workaround by having alternate grids. But that sounds like something you should not be doing.

A* itself doesn't care about grids or planes. It traverses weighted graphs. So, the proper solution would probably be implementing full 3D pathfinding. If properly done, this would even allow having non-planar terrain, such as caves, overhanging cliffs and whatnot.

Edited by smiley
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...