Open Zyjinn opened 8 months ago
Apologizes, I fat fingered my enter key, let me edit this...
Edit: Should be fixed!
I believe the correct sentence is "By default, all points are set to solid = false", since by default all are walkable.
I believe the correct sentence is "By default, all points are set to solid = false", since by default all are walkable.
Haha, correct, re-reading my wording I think it is confusing in a similar way to the original the way I worded it.
Thanks for catching that!
Your Godot version: 4.2
Issue description: While working with AStarGrid2D I noticed two issues with the documentation on the "AStarGrid2D" node:
Note: Calling update is not needed after the call of this function.
However, the "update()" call notes this:
So, if you call update(), not only is it not needed, but it will clear all points set to solid.
Let me know if there's any further questions, but I just had a bunch of issues with this on the Godot forums here debugging an issue, and both of us were confused debugging this, so wanted to fix this up!
tl;dr, my recommendations are:
Suggestions or specifics can be adjusted of course, I just wanted to note this potential issue!
Thanks,
URL to the documentation page:] https://docs.godotengine.org/en/stable/classes/class_astargrid2d.html