summaryrefslogtreecommitdiff
path: root/doc/classes/PhysicsShapeQueryResult2D.xml
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-30 20:32:11 +0200
committerGitHub <noreply@github.com>2020-03-30 20:32:11 +0200
commitf3c74afd2869859fa117271264e9294d36be16e5 (patch)
tree7533def8a2a7fd1a8b52b1fe965c318eb027e781 /doc/classes/PhysicsShapeQueryResult2D.xml
parent6fed21c7cb85c4dd5842d8cb9fc268957a0429fd (diff)
parenteaaee63b629d6999fcc0c84e38886b964f6d051d (diff)
Merge pull request #37436 from akien-mga/doc-node-renames
doc: Update classref with node renames
Diffstat (limited to 'doc/classes/PhysicsShapeQueryResult2D.xml')
-rw-r--r--doc/classes/PhysicsShapeQueryResult2D.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/doc/classes/PhysicsShapeQueryResult2D.xml b/doc/classes/PhysicsShapeQueryResult2D.xml
new file mode 100644
index 0000000000..227683cc33
--- /dev/null
+++ b/doc/classes/PhysicsShapeQueryResult2D.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<class name="PhysicsShapeQueryResult2D" inherits="Reference" version="4.0">
+ <brief_description>
+ Result of a 2D shape query in [PhysicsServer2D].
+ </brief_description>
+ <description>
+ The result of a 2D shape query in [PhysicsServer2D]. See also [PhysicsShapeQueryParameters2D].
+ </description>
+ <tutorials>
+ </tutorials>
+ <methods>
+ <method name="get_result_count" qualifiers="const">
+ <return type="int">
+ </return>
+ <description>
+ Returns the number of objects that intersected with the shape.
+ </description>
+ </method>
+ <method name="get_result_object" qualifiers="const">
+ <return type="Object">
+ </return>
+ <argument index="0" name="idx" type="int">
+ </argument>
+ <description>
+ Returns the [Object] that intersected with the shape at index [code]idx[/code].
+ </description>
+ </method>
+ <method name="get_result_object_id" qualifiers="const">
+ <return type="int">
+ </return>
+ <argument index="0" name="idx" type="int">
+ </argument>
+ <description>
+ Returns the instance ID of the [Object] that intersected with the shape at index [code]idx[/code].
+ </description>
+ </method>
+ <method name="get_result_object_shape" qualifiers="const">
+ <return type="int">
+ </return>
+ <argument index="0" name="idx" type="int">
+ </argument>
+ <description>
+ Returns the child index of the object's [Shape2D] that intersected with the shape at index [code]idx[/code].
+ </description>
+ </method>
+ <method name="get_result_rid" qualifiers="const">
+ <return type="RID">
+ </return>
+ <argument index="0" name="idx" type="int">
+ </argument>
+ <description>
+ Returns the [RID] of the object that intersected with the shape at index [code]idx[/code].
+ </description>
+ </method>
+ </methods>
+ <constants>
+ </constants>
+</class>