diff options
author | Unknown <m.hilbrunner@gmail.com> | 2017-10-27 19:19:01 +0200 |
---|---|---|
committer | Unknown <m.hilbrunner@gmail.com> | 2017-10-27 19:19:01 +0200 |
commit | 9b4c5989ad4a3623330517cd5138472ac85461b5 (patch) | |
tree | 97c17cbc3175d003221c13e904c557a97a2a4612 /doc/classes | |
parent | 6fc2fffb459e8c6deb87fe795e8103747f09b077 (diff) |
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> |