mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-02 21:48:52 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
188 lines
8.5 KiB
ReStructuredText
188 lines
8.5 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the Physics2DShapeQueryParameters.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_Physics2DShapeQueryParameters:
|
|
|
|
Physics2DShapeQueryParameters
|
|
=============================
|
|
|
|
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
|
|
Parámetros a enviar a una consulta de física de forma 2D.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
This class contains the shape and other parameters for 2D intersection/collision queries.
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_Physics2DShapeQueryParameters_property_collide_with_areas>` | ``false`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_Physics2DShapeQueryParameters_property_collide_with_bodies>` | ``true`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`collision_layer<class_Physics2DShapeQueryParameters_property_collision_layer>` | ``2147483647`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`Array<class_Array>` | :ref:`exclude<class_Physics2DShapeQueryParameters_property_exclude>` | ``[ ]`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`float<class_float>` | :ref:`margin<class_Physics2DShapeQueryParameters_property_margin>` | ``0.0`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`Vector2<class_Vector2>` | :ref:`motion<class_Physics2DShapeQueryParameters_property_motion>` | ``Vector2( 0, 0 )`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`RID<class_RID>` | :ref:`shape_rid<class_Physics2DShapeQueryParameters_property_shape_rid>` | |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
| :ref:`Transform2D<class_Transform2D>` | :ref:`transform<class_Physics2DShapeQueryParameters_property_transform>` | ``Transform2D( 1, 0, 0, 1, 0, 0 )`` |
|
|
+---------------------------------------+----------------------------------------------------------------------------------------------+-------------------------------------+
|
|
|
|
Métodos
|
|
--------------
|
|
|
|
+------+--------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_shape<class_Physics2DShapeQueryParameters_method_set_shape>` **(** :ref:`Resource<class_Resource>` shape **)** |
|
|
+------+--------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_collide_with_areas:
|
|
|
|
- :ref:`bool<class_bool>` **collide_with_areas**
|
|
|
|
+-----------+---------------------------------+
|
|
| *Default* | ``false`` |
|
|
+-----------+---------------------------------+
|
|
| *Setter* | set_collide_with_areas(value) |
|
|
+-----------+---------------------------------+
|
|
| *Getter* | is_collide_with_areas_enabled() |
|
|
+-----------+---------------------------------+
|
|
|
|
Si ``true``, la consulta tendrá en cuenta las :ref:`Area2D<class_Area2D>`\ s.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_collide_with_bodies:
|
|
|
|
- :ref:`bool<class_bool>` **collide_with_bodies**
|
|
|
|
+-----------+----------------------------------+
|
|
| *Default* | ``true`` |
|
|
+-----------+----------------------------------+
|
|
| *Setter* | set_collide_with_bodies(value) |
|
|
+-----------+----------------------------------+
|
|
| *Getter* | is_collide_with_bodies_enabled() |
|
|
+-----------+----------------------------------+
|
|
|
|
Si ``true``, la consulta tendrá en cuenta las :ref:`PhysicsBody2D<class_PhysicsBody2D>`\ s.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_collision_layer:
|
|
|
|
- :ref:`int<class_int>` **collision_layer**
|
|
|
|
+-----------+----------------------------+
|
|
| *Default* | ``2147483647`` |
|
|
+-----------+----------------------------+
|
|
| *Setter* | set_collision_layer(value) |
|
|
+-----------+----------------------------+
|
|
| *Getter* | get_collision_layer() |
|
|
+-----------+----------------------------+
|
|
|
|
The physics layer(s) the query will take into account (as a bitmask). See `Collision layers and masks <../tutorials/physics/physics_introduction.html#collision-layers-and-masks>`__ in the documentation for more information.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_exclude:
|
|
|
|
- :ref:`Array<class_Array>` **exclude**
|
|
|
|
+-----------+--------------------+
|
|
| *Default* | ``[ ]`` |
|
|
+-----------+--------------------+
|
|
| *Setter* | set_exclude(value) |
|
|
+-----------+--------------------+
|
|
| *Getter* | get_exclude() |
|
|
+-----------+--------------------+
|
|
|
|
La lista de objetos :ref:`RID<class_RID>` que serán excluidos de las colisiones.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_margin:
|
|
|
|
- :ref:`float<class_float>` **margin**
|
|
|
|
+-----------+-------------------+
|
|
| *Default* | ``0.0`` |
|
|
+-----------+-------------------+
|
|
| *Setter* | set_margin(value) |
|
|
+-----------+-------------------+
|
|
| *Getter* | get_margin() |
|
|
+-----------+-------------------+
|
|
|
|
El margen de colisión de la forma.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_motion:
|
|
|
|
- :ref:`Vector2<class_Vector2>` **motion**
|
|
|
|
+-----------+---------------------+
|
|
| *Default* | ``Vector2( 0, 0 )`` |
|
|
+-----------+---------------------+
|
|
| *Setter* | set_motion(value) |
|
|
+-----------+---------------------+
|
|
| *Getter* | get_motion() |
|
|
+-----------+---------------------+
|
|
|
|
El movimiento de la forma que se ha encolado.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_shape_rid:
|
|
|
|
- :ref:`RID<class_RID>` **shape_rid**
|
|
|
|
+----------+----------------------+
|
|
| *Setter* | set_shape_rid(value) |
|
|
+----------+----------------------+
|
|
| *Getter* | get_shape_rid() |
|
|
+----------+----------------------+
|
|
|
|
The queried shape's :ref:`RID<class_RID>`. See also :ref:`set_shape<class_Physics2DShapeQueryParameters_method_set_shape>`.
|
|
|
|
----
|
|
|
|
.. _class_Physics2DShapeQueryParameters_property_transform:
|
|
|
|
- :ref:`Transform2D<class_Transform2D>` **transform**
|
|
|
|
+-----------+-------------------------------------+
|
|
| *Default* | ``Transform2D( 1, 0, 0, 1, 0, 0 )`` |
|
|
+-----------+-------------------------------------+
|
|
| *Setter* | set_transform(value) |
|
|
+-----------+-------------------------------------+
|
|
| *Getter* | get_transform() |
|
|
+-----------+-------------------------------------+
|
|
|
|
La matriz de transformación de la forma en cuestión.
|
|
|
|
Descripciones de Métodos
|
|
------------------------------------------------
|
|
|
|
.. _class_Physics2DShapeQueryParameters_method_set_shape:
|
|
|
|
- void **set_shape** **(** :ref:`Resource<class_Resource>` shape **)**
|
|
|
|
Sets the :ref:`Shape2D<class_Shape2D>` that will be used for collision/intersection queries.
|
|
|
|
.. |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.)`
|