Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all crossed polygons #51

Open
SylvainBreton opened this issue Feb 22, 2022 · 0 comments
Open

Get all crossed polygons #51

SylvainBreton opened this issue Feb 22, 2022 · 0 comments

Comments

@SylvainBreton
Copy link

Hi,
I am using NavMesh in an isometric game.
The isometric factor brings its share of issues, but I managed to build my grid and use it to get a path.

However, I have a problem. My character can only move in 2 dimensions North-South and East-West, so I have ton convert the path given by navmesh in N-S and E-W components. This work fine as long as the path given by NavMesh do not cross a polygon without 'stopping' by it.

Is there any way to add intermediate points to the path each time the path cross polygon limits ?

I think this could also be interesting in case you want to apply, let say, a speed modifiers, in specific polygons.

If you ever are interested in proper isometric implementation here is a link to our code that is open source https://gitlab.com/eternaltwin/mush/mush/-/tree/develop/App/src/game/scenes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant