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

AStar: Get a list of connected points #12567

Closed
Timofffee opened this issue Nov 1, 2017 · 1 comment
Closed

AStar: Get a list of connected points #12567

Timofffee opened this issue Nov 1, 2017 · 1 comment

Comments

@Timofffee
Copy link
Contributor

Timofffee commented Nov 1, 2017

Please add the ability to list points that were connected with the current point.
[p_index, ...] <- get_point_conections(p_index)
For example:

var astar = AStar.new()
astar.add_point(1, Vector3(30, 30, 3))
astar.add_point(2, Vector3(23, 30, 0))
astar.add_point(3, Vector3(41, 32, 3))

astar.connect_points(1, 2)
astar.connect_points(1, 3)

print (astar.get_point_connections( 1 ))
# [2, 3]
@lmcdd
Copy link
Contributor

lmcdd commented Nov 2, 2017

Yes, it's very useful!

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

No branches or pull requests

2 participants