From 8c478dcec9abf91491ed952af6244bda5cb15703 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Tue, 20 Dec 2022 11:48:53 +0300 Subject: Restore weight scale for `AStarGrid2D` (partially) --- doc/classes/AStarGrid2D.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/AStarGrid2D.xml b/doc/classes/AStarGrid2D.xml index bffa395770..916946775b 100644 --- a/doc/classes/AStarGrid2D.xml +++ b/doc/classes/AStarGrid2D.xml @@ -69,6 +69,13 @@ [b]Note:[/b] This method is not thread-safe. If called from a [Thread], it will return an empty [PackedVector3Array] and will print an error message. + + + + + Returns the weight scale of the point associated with the given [param id]. + + @@ -106,6 +113,15 @@ [b]Note:[/b] Calling [method update] is not needed after the call of this function. + + + + + + Sets the [param weight_scale] for the point with the given [param id]. The [param weight_scale] is multiplied by the result of [method _compute_cost] when determining the overall cost of traveling across a segment from a neighboring point to this point. + [b]Note:[/b] Calling [method update] is not needed after the call of this function. + + @@ -125,6 +141,7 @@ Enables or disables jumping to skip up the intermediate points and speeds up the searching algorithm. + [b]Note:[/b] Currently, toggling it on disables the consideration of weight scaling in pathfinding. The offset of the grid which will be applied to calculate the resulting point position returned by [method get_point_path]. If changed, [method update] needs to be called before finding the next path. -- cgit v1.2.3