: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//doc_classes. .. _class_Physics2DShapeQueryResult: Physics2DShapeQueryResult ========================= **Inherits:** :ref:`Reference` **<** :ref:`Object` Result of a 2D shape query in :ref:`Physics2DServer`. Description ----------- The result of a 2D shape query in :ref:`Physics2DServer`. See also :ref:`Physics2DShapeQueryParameters`. Methods ------- +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_result_count` **(** **)** |const| | +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`get_result_object` **(** :ref:`int` idx **)** |const| | +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_result_object_id` **(** :ref:`int` idx **)** |const| | +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_result_object_shape` **(** :ref:`int` idx **)** |const| | +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_result_rid` **(** :ref:`int` idx **)** |const| | +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_Physics2DShapeQueryResult_method_get_result_count: - :ref:`int` **get_result_count** **(** **)** |const| Returns the number of objects that intersected with the shape. ---- .. _class_Physics2DShapeQueryResult_method_get_result_object: - :ref:`Object` **get_result_object** **(** :ref:`int` idx **)** |const| Returns the :ref:`Object` that intersected with the shape at index ``idx``. ---- .. _class_Physics2DShapeQueryResult_method_get_result_object_id: - :ref:`int` **get_result_object_id** **(** :ref:`int` idx **)** |const| Returns the instance ID of the :ref:`Object` that intersected with the shape at index ``idx``. ---- .. _class_Physics2DShapeQueryResult_method_get_result_object_shape: - :ref:`int` **get_result_object_shape** **(** :ref:`int` idx **)** |const| Returns the child index of the object's :ref:`Shape` that intersected with the shape at index ``idx``. ---- .. _class_Physics2DShapeQueryResult_method_get_result_rid: - :ref:`RID` **get_result_rid** **(** :ref:`int` idx **)** |const| Returns the :ref:`RID` of the object that intersected with the shape at index ``idx``. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`