You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
In AStarGrid2D by default, all points are enabled (solid set to false). It is not optimal for my use case.
In my case the grid is mostly empty and is being populated at run time. Having them enabled by default forces user to iterate over whole grid and disable most or all points. This is one time operation in initialisation.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Allow for passing argument in constructor of AStarGrid2D to choose the default value. This way user might choose what is the most optimal for theirs use case
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Interface could be like that for example:
var astar_grid: AStarGrid2D = AStarGrid2D.new(solid = true)
If no argument is given the current default would be used of solid being default to false for each grid cell
If this enhancement will not be used often, can it be worked around with a few lines of script?
yes. iterate over every cell in grid and set set_point_solid to disable.
Is there a reason why this should be core and not an add-on in the asset library?
Seems to be more flexible and not forcing user to do unnecessary work. Allowing to chose default would cover bigger userbase.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
realtime 2D grid based strategy
Describe the problem or limitation you are having in your project
In AStarGrid2D by default, all points are enabled (solid set to false). It is not optimal for my use case.
In my case the grid is mostly empty and is being populated at run time. Having them enabled by default forces user to iterate over whole grid and disable most or all points. This is one time operation in initialisation.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Allow for passing argument in constructor of AStarGrid2D to choose the default value. This way user might choose what is the most optimal for theirs use case
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Interface could be like that for example:
var astar_grid: AStarGrid2D = AStarGrid2D.new(solid = true)
If no argument is given the current default would be used of solid being default to false for each grid cell
If this enhancement will not be used often, can it be worked around with a few lines of script?
yes. iterate over every cell in grid and set
set_point_solid
to disable.Is there a reason why this should be core and not an add-on in the asset library?
Seems to be more flexible and not forcing user to do unnecessary work. Allowing to chose default would cover bigger userbase.
The text was updated successfully, but these errors were encountered: