Replies: 2 comments 1 reply
-
@Chaosus I see you are a major contributor to AStarGrid2D. Could you enlighten me if there is a limitation with setting a path between two points as a unidirectional path. Is this possible? I appreciate it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ssaenger I think there is no limitation for this. In fact, I prepared a branch for this: https://github.com/Chaosus/godot/tree/astargrid_portals. I didn't create a PR since there is no much interest from the community. The only hard part with this is a "jump" function support, which should work correctly with these "portals". |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why doesn't AStarGrid2D have a method to set a path between two cells as unidirectional? This seems possible in AStar2D, but why not AStarGrid2D? Looking at the a_star_grid_2d source code, it does have logic to check for a path in all directions, so it seems doable to add a new check to check if a direction is allowed that the user can set. A new method could be created to set a direction as unidirectional:
bool set_point_direction(from_id: Vector2i, to_id: Vector2i)
Beta Was this translation helpful? Give feedback.
All reactions