diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-29 13:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-29 13:32:08 +0100 |
commit | 9f4f630adf8d96b0a251c478c1ea69da36947503 (patch) | |
tree | 637056fbdcc1b1cb7b551b24aae79a2c3663291a /doc/classes | |
parent | d4d12eba535b2aedcf658c46fabd44b053b10e70 (diff) | |
parent | 9b4c5989ad4a3623330517cd5138472ac85461b5 (diff) |
Merge pull request #12437 from mhilbrunner/astar-setpointweightscale
AStar: Add setters for point position and scale weight, cleanup
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/AStar.xml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/classes/AStar.xml b/doc/classes/AStar.xml index 9b15afbbd4..baeeddcd1a 100644 --- a/doc/classes/AStar.xml +++ b/doc/classes/AStar.xml @@ -50,6 +50,7 @@ as.add_point(1, Vector3(1,0,0), 4) # Adds the point (1,0,0) with weight_scale=4 and id=1 [/codeblock] + If there already exists a point for the given id, its position and weight scale are updated to the given values. </description> </method> <method name="are_points_connected" qualifiers="const"> @@ -107,7 +108,7 @@ <return type="int"> </return> <description> - Returns an id with no point associated to it. + Returns the next available point id with no point associated to it. </description> </method> <method name="get_closest_point" qualifiers="const"> @@ -220,6 +221,28 @@ Removes the point associated with the given id from the points pool. </description> </method> + <method name="set_point_position"> + <return type="void"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <argument index="1" name="position" type="Vector3"> + </argument> + <description> + Sets the position for the point with the given id. + </description> + </method> + <method name="set_point_weight_scale"> + <return type="void"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <argument index="1" name="weight_scale" type="float"> + </argument> + <description> + Sets the [code]weight_scale[/code] for the point with the given id. + </description> + </method> </methods> <constants> </constants> |