class_world3d.rst 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/World3D.xml.
  6. .. _class_World3D:
  7. World3D
  8. =======
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A resource that holds all components of a 3D world, such as a visual scenario and a physics space.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Class that has everything pertaining to a world: A physics space, a visual scenario, and a sound space. 3D nodes register their resources into the current 3D world.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`Ray-casting <../tutorials/physics/ray-casting>`
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  25. | :ref:`CameraAttributes<class_CameraAttributes>` | :ref:`camera_attributes<class_World3D_property_camera_attributes>` |
  26. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  27. | :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` | :ref:`direct_space_state<class_World3D_property_direct_space_state>` |
  28. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  29. | :ref:`Environment<class_Environment>` | :ref:`environment<class_World3D_property_environment>` |
  30. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  31. | :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World3D_property_fallback_environment>` |
  32. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  33. | :ref:`RID<class_RID>` | :ref:`navigation_map<class_World3D_property_navigation_map>` |
  34. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  35. | :ref:`RID<class_RID>` | :ref:`scenario<class_World3D_property_scenario>` |
  36. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  37. | :ref:`RID<class_RID>` | :ref:`space<class_World3D_property_space>` |
  38. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  39. .. rst-class:: classref-section-separator
  40. ----
  41. .. rst-class:: classref-descriptions-group
  42. Property Descriptions
  43. ---------------------
  44. .. _class_World3D_property_camera_attributes:
  45. .. rst-class:: classref-property
  46. :ref:`CameraAttributes<class_CameraAttributes>` **camera_attributes** :ref:`🔗<class_World3D_property_camera_attributes>`
  47. .. rst-class:: classref-property-setget
  48. - |void| **set_camera_attributes**\ (\ value\: :ref:`CameraAttributes<class_CameraAttributes>`\ )
  49. - :ref:`CameraAttributes<class_CameraAttributes>` **get_camera_attributes**\ (\ )
  50. The default :ref:`CameraAttributes<class_CameraAttributes>` resource to use if none set on the :ref:`Camera3D<class_Camera3D>`.
  51. .. rst-class:: classref-item-separator
  52. ----
  53. .. _class_World3D_property_direct_space_state:
  54. .. rst-class:: classref-property
  55. :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` **direct_space_state** :ref:`🔗<class_World3D_property_direct_space_state>`
  56. .. rst-class:: classref-property-setget
  57. - :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` **get_direct_space_state**\ (\ )
  58. Direct access to the world's physics 3D space state. Used for querying current and potential collisions. When using multi-threaded physics, access is limited to :ref:`Node._physics_process<class_Node_private_method__physics_process>` in the main thread.
  59. .. rst-class:: classref-item-separator
  60. ----
  61. .. _class_World3D_property_environment:
  62. .. rst-class:: classref-property
  63. :ref:`Environment<class_Environment>` **environment** :ref:`🔗<class_World3D_property_environment>`
  64. .. rst-class:: classref-property-setget
  65. - |void| **set_environment**\ (\ value\: :ref:`Environment<class_Environment>`\ )
  66. - :ref:`Environment<class_Environment>` **get_environment**\ (\ )
  67. The World3D's :ref:`Environment<class_Environment>`.
  68. .. rst-class:: classref-item-separator
  69. ----
  70. .. _class_World3D_property_fallback_environment:
  71. .. rst-class:: classref-property
  72. :ref:`Environment<class_Environment>` **fallback_environment** :ref:`🔗<class_World3D_property_fallback_environment>`
  73. .. rst-class:: classref-property-setget
  74. - |void| **set_fallback_environment**\ (\ value\: :ref:`Environment<class_Environment>`\ )
  75. - :ref:`Environment<class_Environment>` **get_fallback_environment**\ (\ )
  76. The World3D's fallback environment will be used if :ref:`environment<class_World3D_property_environment>` fails or is missing.
  77. .. rst-class:: classref-item-separator
  78. ----
  79. .. _class_World3D_property_navigation_map:
  80. .. rst-class:: classref-property
  81. :ref:`RID<class_RID>` **navigation_map** :ref:`🔗<class_World3D_property_navigation_map>`
  82. .. rst-class:: classref-property-setget
  83. - :ref:`RID<class_RID>` **get_navigation_map**\ (\ )
  84. The :ref:`RID<class_RID>` of this world's navigation map. Used by the :ref:`NavigationServer3D<class_NavigationServer3D>`.
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_World3D_property_scenario:
  88. .. rst-class:: classref-property
  89. :ref:`RID<class_RID>` **scenario** :ref:`🔗<class_World3D_property_scenario>`
  90. .. rst-class:: classref-property-setget
  91. - :ref:`RID<class_RID>` **get_scenario**\ (\ )
  92. The World3D's visual scenario.
  93. .. rst-class:: classref-item-separator
  94. ----
  95. .. _class_World3D_property_space:
  96. .. rst-class:: classref-property
  97. :ref:`RID<class_RID>` **space** :ref:`🔗<class_World3D_property_space>`
  98. .. rst-class:: classref-property-setget
  99. - :ref:`RID<class_RID>` **get_space**\ (\ )
  100. The World3D's physics space.
  101. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  102. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  103. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  104. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  105. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  106. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  107. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  108. .. |void| replace:: :abbr:`void (No return value.)`