1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- :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``.
- .. |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.)`
|