BaldrDash / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Jump links don't work if they span more than one tile #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I don't know if this is a limitation of jump links or if it's actually a bug.

I discovered that if the jump link end is over 1 tile away then it doesn't 
work. It only works when the ends are both in the same tile or adjacent tiles.

Note that I am on a slightly old version of Recast (r172) and haven't tried 
this with the latest.

See attached screen shot for some examples.

Original issue reported on code.google.com by cameron....@gmail.com on 2 Sep 2010 at 5:57

Attachments:

GoogleCodeExporter commented 9 years ago
OK, looking at the code it looks like they are only intended to link to 
neighbouring tiles.

Do you think it would be difficult to make them connect to arbitrary tiles?

Original comment by cameron....@gmail.com on 2 Sep 2010 at 6:45

GoogleCodeExporter commented 9 years ago
This is by design. Managing connection between tiles is quite cumbersome task. 
By only allowing links to 8-neighbour tiles, I could implement tile adding and 
removing quickly.

Original comment by memono...@gmail.com on 17 Sep 2010 at 6:46

GoogleCodeExporter commented 9 years ago
Fair enough. I just made my tile size a little larger to work around it. Our 
game is a vehicle based game with a few large jumps which is why this came up.

Original comment by cameron....@gmail.com on 17 Sep 2010 at 12:38