summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorDmDerbin <dds9435@gmail.com>2017-11-02 22:42:58 +0300
committerDmDerbin <dds9435@gmail.com>2017-11-04 11:21:03 +0300
commit4c79e58e3fcb4fe1aa81bc5085a8b0f7e7f92673 (patch)
treeb0990bb7004036ab78e8fcc612dca20e2667c19f /doc/classes
parentc880302754352dce1e44bf00bf9b1ac20e71cd1d (diff)
AStar: implementation of get_point_connections
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/AStar.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/classes/AStar.xml b/doc/classes/AStar.xml
index baeeddcd1a..10ca3035fb 100644
--- a/doc/classes/AStar.xml
+++ b/doc/classes/AStar.xml
@@ -243,6 +243,28 @@
Sets the [code]weight_scale[/code] for the point with the given id.
</description>
</method>
+ <method name="get_point_connections">
+ <return type="PoolIntArray">
+ </return>
+ <argument index="0" name="id" type="int">
+ </argument>
+ <description>
+ Returns an array with the ids of the points that form the connect with the given point.
+ [codeblock]
+ var as = AStar.new()
+
+ as.add_point(1, Vector3(0,0,0))
+ as.add_point(2, Vector3(0,1,0))
+ as.add_point(3, Vector3(1,1,0))
+ as.add_point(4, Vector3(2,0,0))
+
+ as.connect_points(1, 2, true)
+ as.connect_points(1, 3, true)
+
+ var neighbors = as.get_point_connections(1) # returns [2, 3]
+ [/codeblock]
+ </description>
+ </method>
</methods>
<constants>
</constants>