diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2022-05-06 02:33:10 +0200 |
---|---|---|
committer | smix8 <52464204+smix8@users.noreply.github.com> | 2022-05-06 02:33:10 +0200 |
commit | 868fe4942c70267387a116f2ce57d7bf1a7bbd5e (patch) | |
tree | 0cd0e2f64a37218c6fd385e7ac98f46fcb6cc8f5 /doc/classes/AStar2D.xml | |
parent | 066692b6d081f1577bc0ebcd84da204339218ec6 (diff) | |
download | redot-engine-868fe4942c70267387a116f2ce57d7bf1a7bbd5e.tar.gz |
Allow AStar2D/AStar3D zero point weight
Allow AStar2D/AStar3D zero point weight.
Limit was set to 1 which seemed like an arbitrary value as lower values down to zero can be useful for common gameplay navigation elements like teleports.
Diffstat (limited to 'doc/classes/AStar2D.xml')
-rw-r--r-- | doc/classes/AStar2D.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/AStar2D.xml b/doc/classes/AStar2D.xml index 4b65a64389..7a27568d30 100644 --- a/doc/classes/AStar2D.xml +++ b/doc/classes/AStar2D.xml @@ -33,7 +33,7 @@ <argument index="1" name="position" type="Vector2" /> <argument index="2" name="weight_scale" type="float" default="1.0" /> <description> - Adds a new point at the given position with the given identifier. The [code]id[/code] must be 0 or larger, and the [code]weight_scale[/code] must be 1 or larger. + Adds a new point at the given position with the given identifier. The [code]id[/code] must be 0 or larger, and the [code]weight_scale[/code] must be 0.0 or greater. The [code]weight_scale[/code] 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. Thus, all else being equal, the algorithm prefers points with lower [code]weight_scale[/code]s to form a path. [codeblocks] [gdscript] |