mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
179 lines
7.6 KiB
ReStructuredText
179 lines
7.6 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_World3D:
|
||
|
||
World3D
|
||
=======
|
||
|
||
**Hérite de :** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||
|
||
Une ressource qui détient toutes les composantes d'un monde 3D, comme un scénario visuel et un espace physique.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Description
|
||
-----------
|
||
|
||
Une classe qui a tout ce qui concerne un monde 3D : Un espace physique, un scénario visuel et un espace de son. Les nœuds 3D enregistrent leurs ressources dans le monde 3D actuel.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Tutoriels
|
||
------------------
|
||
|
||
- :doc:`Lancer de rayons <../tutorials/physics/ray-casting>`
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Propriétés
|
||
--------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`CameraAttributes<class_CameraAttributes>` | :ref:`camera_attributes<class_World3D_property_camera_attributes>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` | :ref:`direct_space_state<class_World3D_property_direct_space_state>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`Environment<class_Environment>` | :ref:`environment<class_World3D_property_environment>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World3D_property_fallback_environment>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`navigation_map<class_World3D_property_navigation_map>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`scenario<class_World3D_property_scenario>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`space<class_World3D_property_space>` |
|
||
+-------------------------------------------------------------------+--------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Descriptions des propriétés
|
||
------------------------------------------------------
|
||
|
||
.. _class_World3D_property_camera_attributes:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`CameraAttributes<class_CameraAttributes>` **camera_attributes** :ref:`🔗<class_World3D_property_camera_attributes>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_camera_attributes**\ (\ value\: :ref:`CameraAttributes<class_CameraAttributes>`\ )
|
||
- :ref:`CameraAttributes<class_CameraAttributes>` **get_camera_attributes**\ (\ )
|
||
|
||
La ressource :ref:`CameraAttributes<class_CameraAttributes>` par défaut à utiliser si aucune n'est définie sur la :ref:`Camera3D<class_Camera3D>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_World3D_property_direct_space_state:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` **direct_space_state** :ref:`🔗<class_World3D_property_direct_space_state>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` **get_direct_space_state**\ (\ )
|
||
|
||
Accès direct à l'état de l'espace physique 3D du monde. Utilisé pour interroger sur des collisions actuelles et potentielles. Lors de l'utilisation de la physique multi-threaded, l'accès est limité à :ref:`Node._physics_process()<class_Node_private_method__physics_process>` dans le fil d'exécution principal.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_World3D_property_environment:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Environment<class_Environment>` **environment** :ref:`🔗<class_World3D_property_environment>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_environment**\ (\ value\: :ref:`Environment<class_Environment>`\ )
|
||
- :ref:`Environment<class_Environment>` **get_environment**\ (\ )
|
||
|
||
L':ref:`Environment<class_Environment>` du World3D.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_World3D_property_fallback_environment:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Environment<class_Environment>` **fallback_environment** :ref:`🔗<class_World3D_property_fallback_environment>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_fallback_environment**\ (\ value\: :ref:`Environment<class_Environment>`\ )
|
||
- :ref:`Environment<class_Environment>` **get_fallback_environment**\ (\ )
|
||
|
||
L'environnement de repli du World3D qui sera utilisé si :ref:`environment<class_World3D_property_environment>` échoue ou est manquant.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_World3D_property_navigation_map:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`RID<class_RID>` **navigation_map** :ref:`🔗<class_World3D_property_navigation_map>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- :ref:`RID<class_RID>` **get_navigation_map**\ (\ )
|
||
|
||
Le :ref:`RID<class_RID>` de la carte de navigation de ce monde. Utilisé par le :ref:`NavigationServer3D<class_NavigationServer3D>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_World3D_property_scenario:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`RID<class_RID>` **scenario** :ref:`🔗<class_World3D_property_scenario>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- :ref:`RID<class_RID>` **get_scenario**\ (\ )
|
||
|
||
Le scénario visuel du World3D.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_World3D_property_space:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`RID<class_RID>` **space** :ref:`🔗<class_World3D_property_space>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- :ref:`RID<class_RID>` **get_space**\ (\ )
|
||
|
||
L’espace physique du World3D.
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (Cette méthode doit typiquement être redéfinie par l'utilisateur pour avoir un effet.)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (Cette méthode n'a pas d'effets de bord. Elle ne modifie aucune des variables membres de l'instance.)`
|
||
.. |vararg| replace:: :abbr:`vararg (Cette méthode accepte n'importe quel nombre d'arguments après ceux décris ici.)`
|
||
.. |constructor| replace:: :abbr:`constructor (Cette méthode est utilisée pour construire un type.)`
|
||
.. |static| replace:: :abbr:`static (Cette méthode n'a pas besoin d'instance pour être appelée, elle peut donc être directement appelée en utilisant le nom de la classe.)`
|
||
.. |operator| replace:: :abbr:`operator (Cette méthode décrit un opérateur valide à utiliser avec ce type en tant qu'opérande gauche.)`
|
||
.. |bitfield| replace:: :abbr:`BitField (Cette valeur est un nombre entier composé d'un masque de bits des options suivantes.)`
|
||
.. |void| replace:: :abbr:`void (Aucune valeur de retour.)`
|