: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//doc_classes. .. _class_PhysicsShapeQueryResult: PhysicsShapeQueryResult ======================= **Inherits:** :ref:`Reference` **<** :ref:`Object` Result of a 3D shape query in :ref:`PhysicsServer`. Description ----------- The result of a 3D shape query in :ref:`PhysicsServer`. See also :ref:`PhysicsShapeQueryParameters`. 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_PhysicsShapeQueryResult_method_get_result_count: - :ref:`int` **get_result_count** **(** **)** const Returns the number of objects that intersected with the shape. ---- .. _class_PhysicsShapeQueryResult_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_PhysicsShapeQueryResult_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_PhysicsShapeQueryResult_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_PhysicsShapeQueryResult_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``.