summaryrefslogtreecommitdiff
path: root/doc/classes/PhysicsShapeQueryResult.xml
blob: 1f151ebb1a894ed01ffd8c100faa8bbeaf66898f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PhysicsShapeQueryResult" inherits="Reference" category="Core" version="3.2">
	<brief_description>
		Result of a 3D shape query in [PhysicsServer].
	</brief_description>
	<description>
		The result of a 3D shape query in [PhysicsServer]. See also [PhysicsShapeQueryParameters].
	</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 [Shape] 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>