Files
godot-docs/classes/class_physicsshapequeryresult.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 PhysicsShapeQueryResult.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_PhysicsShapeQueryResult:
PhysicsShapeQueryResult
=======================
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
Result of a 3D shape query in :ref:`PhysicsServer<class_PhysicsServer>`.
Description
-----------
The result of a 3D shape query in :ref:`PhysicsServer<class_PhysicsServer>`. See also :ref:`PhysicsShapeQueryParameters<class_PhysicsShapeQueryParameters>`.
Methods
-------
+-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_result_count<class_PhysicsShapeQueryResult_method_get_result_count>` **(** **)** const |
+-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Object<class_Object>` | :ref:`get_result_object<class_PhysicsShapeQueryResult_method_get_result_object>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_result_object_id<class_PhysicsShapeQueryResult_method_get_result_object_id>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_result_object_shape<class_PhysicsShapeQueryResult_method_get_result_object_shape>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`RID<class_RID>` | :ref:`get_result_rid<class_PhysicsShapeQueryResult_method_get_result_rid>` **(** :ref:`int<class_int>` idx **)** const |
+-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
Method Descriptions
-------------------
.. _class_PhysicsShapeQueryResult_method_get_result_count:
- :ref:`int<class_int>` **get_result_count** **(** **)** const
Returns the number of objects that intersected with the shape.
----
.. _class_PhysicsShapeQueryResult_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_PhysicsShapeQueryResult_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_PhysicsShapeQueryResult_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_PhysicsShapeQueryResult_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``.