Files
godot-docs/classes/class_physics2dshapequeryresult.rst
Rémi Verschelde 2b4319bc29 Sync classref with current source
Changes order of brief/long descriptions and removes category
as per godotengine/godot#35132.
2020-01-15 00:51:47 +01:00

77 lines
3.8 KiB
ReStructuredText

:github_url: hide
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the Physics2DShapeQueryResult.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_Physics2DShapeQueryResult:
Physics2DShapeQueryResult
=========================
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
Result of a 2D shape query in :ref:`Physics2DServer<class_Physics2DServer>`.
Description
-----------
The result of a 2D shape query in :ref:`Physics2DServer<class_Physics2DServer>`. See also :ref:`Physics2DShapeQueryParameters<class_Physics2DShapeQueryParameters>`.
Methods
-------
+-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_result_count<class_Physics2DShapeQueryResult_method_get_result_count>` **(** **)** const |
+-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Object<class_Object>` | :ref:`get_result_object<class_Physics2DShapeQueryResult_method_get_result_object>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_result_object_id<class_Physics2DShapeQueryResult_method_get_result_object_id>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_result_object_shape<class_Physics2DShapeQueryResult_method_get_result_object_shape>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`RID<class_RID>` | :ref:`get_result_rid<class_Physics2DShapeQueryResult_method_get_result_rid>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
Method Descriptions
-------------------
.. _class_Physics2DShapeQueryResult_method_get_result_count:
- :ref:`int<class_int>` **get_result_count** **(** **)** const
Returns the number of objects that intersected with the shape.
----
.. _class_Physics2DShapeQueryResult_method_get_result_object:
- :ref:`Object<class_Object>` **get_result_object** **(** :ref:`int<class_int>` idx **)** const
Returns the :ref:`Object<class_Object>` that intersected with the shape at index ``idx``.
----
.. _class_Physics2DShapeQueryResult_method_get_result_object_id:
- :ref:`int<class_int>` **get_result_object_id** **(** :ref:`int<class_int>` idx **)** const
Returns the instance ID of the :ref:`Object<class_Object>` that intersected with the shape at index ``idx``.
----
.. _class_Physics2DShapeQueryResult_method_get_result_object_shape:
- :ref:`int<class_int>` **get_result_object_shape** **(** :ref:`int<class_int>` idx **)** const
Returns the child index of the object's :ref:`Shape<class_Shape>` that intersected with the shape at index ``idx``.
----
.. _class_Physics2DShapeQueryResult_method_get_result_rid:
- :ref:`RID<class_RID>` **get_result_rid** **(** :ref:`int<class_int>` idx **)** const
Returns the :ref:`RID<class_RID>` of the object that intersected with the shape at index ``idx``.