mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +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`
105 lines
4.3 KiB
ReStructuredText
105 lines
4.3 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 OccluderPolygon2D.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_OccluderPolygon2D:
|
|
|
|
OccluderPolygon2D
|
|
=================
|
|
|
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
|
|
Define un polígono 2D para el LightOccluder2D.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
Facilidad de edición que te ayuda a dibujar un polígono 2D usado como recurso para :ref:`LightOccluder2D<class_LightOccluder2D>`.
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+--------------------------------------------------+--------------------------------------------------------------+--------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`closed<class_OccluderPolygon2D_property_closed>` | ``true`` |
|
|
+--------------------------------------------------+--------------------------------------------------------------+--------------------------+
|
|
| :ref:`CullMode<enum_OccluderPolygon2D_CullMode>` | :ref:`cull_mode<class_OccluderPolygon2D_property_cull_mode>` | ``0`` |
|
|
+--------------------------------------------------+--------------------------------------------------------------+--------------------------+
|
|
| :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`polygon<class_OccluderPolygon2D_property_polygon>` | ``PoolVector2Array( )`` |
|
|
+--------------------------------------------------+--------------------------------------------------------------+--------------------------+
|
|
|
|
Enumeraciones
|
|
--------------------------
|
|
|
|
.. _enum_OccluderPolygon2D_CullMode:
|
|
|
|
.. _class_OccluderPolygon2D_constant_CULL_DISABLED:
|
|
|
|
.. _class_OccluderPolygon2D_constant_CULL_CLOCKWISE:
|
|
|
|
.. _class_OccluderPolygon2D_constant_CULL_COUNTER_CLOCKWISE:
|
|
|
|
enum **CullMode**:
|
|
|
|
- **CULL_DISABLED** = **0** --- La extracción está desactivada. Ver :ref:`cull_mode<class_OccluderPolygon2D_property_cull_mode>`.
|
|
|
|
- **CULL_CLOCKWISE** = **1** --- La selección se realiza en el sentido de las agujas del reloj. Ver :ref:`cull_mode<class_OccluderPolygon2D_property_cull_mode>`.
|
|
|
|
- **CULL_COUNTER_CLOCKWISE** = **2** --- La selección se realiza en sentido contrario a las agujas del reloj. Véase :ref:`cull_mode<class_OccluderPolygon2D_property_cull_mode>`.
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_OccluderPolygon2D_property_closed:
|
|
|
|
- :ref:`bool<class_bool>` **closed**
|
|
|
|
+-----------+-------------------+
|
|
| *Default* | ``true`` |
|
|
+-----------+-------------------+
|
|
| *Setter* | set_closed(value) |
|
|
+-----------+-------------------+
|
|
| *Getter* | is_closed() |
|
|
+-----------+-------------------+
|
|
|
|
Si ``true``, cierra el polígono. Un OccluderPolygon2D cerrado ocluye la luz que viene de cualquier dirección. Un OccluderPolygon2D abierto ocluye la luz sólo en la dirección de su contorno.
|
|
|
|
----
|
|
|
|
.. _class_OccluderPolygon2D_property_cull_mode:
|
|
|
|
- :ref:`CullMode<enum_OccluderPolygon2D_CullMode>` **cull_mode**
|
|
|
|
+-----------+----------------------+
|
|
| *Default* | ``0`` |
|
|
+-----------+----------------------+
|
|
| *Setter* | set_cull_mode(value) |
|
|
+-----------+----------------------+
|
|
| *Getter* | get_cull_mode() |
|
|
+-----------+----------------------+
|
|
|
|
El modo de selección a utilizar.
|
|
|
|
----
|
|
|
|
.. _class_OccluderPolygon2D_property_polygon:
|
|
|
|
- :ref:`PoolVector2Array<class_PoolVector2Array>` **polygon**
|
|
|
|
+-----------+--------------------------+
|
|
| *Default* | ``PoolVector2Array( )`` |
|
|
+-----------+--------------------------+
|
|
| *Setter* | set_polygon(value) |
|
|
+-----------+--------------------------+
|
|
| *Getter* | get_polygon() |
|
|
+-----------+--------------------------+
|
|
|
|
Un array :ref:`Vector2<class_Vector2>` con el índice para las posiciones de los vértices del polígono.
|
|
|
|
\ **Nota:** El valor devuelto es una copia de la array subyacente, más que una referencia.
|
|
|
|
.. |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.)`
|