How do I get funcref-like functionality to work within a_star.cpp? #5424
KnightNine
started this conversation in
Engine Core
Replies: 1 comment
-
Nevermind i found that |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am working on Astar optimization and I want to try testing for straight paths before using astar when traversing octants/chunks of my hierarchal pathfinding loop. Since Godot's Astar algorithm is generic and isn't aware of any grid, it cannot assume straight paths, so I need to pass a user made function into the Astar object from GDscript to be used in the Astar algorithm. This function would take 2 point ids and return a
PoolIntArray
of point ids that is the path between the two points.I've tried to copy code from func_ref.cpp to do this but cannot compile due to build errors. and I also have other questions about what I'm doing in the commentation.
here are the relevant functions:
and I'm getting these errors when trying to build:
Beta Was this translation helpful? Give feedback.
All reactions