class_world.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/World.xml.
  6. .. _class_World:
  7. World
  8. =====
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Class that has everything pertaining to a world.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Class that has everything pertaining to a world. A physics space, a visual scenario, a navigation map and a sound space. Spatial nodes register their resources into the current world.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`../tutorials/physics/ray-casting`
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +---------------------------------------------------------------+------------------------------------------------------------------------+
  25. | :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` | :ref:`direct_space_state<class_World_property_direct_space_state>` |
  26. +---------------------------------------------------------------+------------------------------------------------------------------------+
  27. | :ref:`Environment<class_Environment>` | :ref:`environment<class_World_property_environment>` |
  28. +---------------------------------------------------------------+------------------------------------------------------------------------+
  29. | :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World_property_fallback_environment>` |
  30. +---------------------------------------------------------------+------------------------------------------------------------------------+
  31. | :ref:`RID<class_RID>` | :ref:`navigation_map<class_World_property_navigation_map>` |
  32. +---------------------------------------------------------------+------------------------------------------------------------------------+
  33. | :ref:`RID<class_RID>` | :ref:`scenario<class_World_property_scenario>` |
  34. +---------------------------------------------------------------+------------------------------------------------------------------------+
  35. | :ref:`RID<class_RID>` | :ref:`space<class_World_property_space>` |
  36. +---------------------------------------------------------------+------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Property Descriptions
  41. ---------------------
  42. .. _class_World_property_direct_space_state:
  43. .. rst-class:: classref-property
  44. :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` **direct_space_state**
  45. .. rst-class:: classref-property-setget
  46. - :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` **get_direct_space_state** **(** **)**
  47. Direct access to the world's physics 3D space state. Used for querying current and potential collisions.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_World_property_environment:
  51. .. rst-class:: classref-property
  52. :ref:`Environment<class_Environment>` **environment**
  53. .. rst-class:: classref-property-setget
  54. - void **set_environment** **(** :ref:`Environment<class_Environment>` value **)**
  55. - :ref:`Environment<class_Environment>` **get_environment** **(** **)**
  56. The World's :ref:`Environment<class_Environment>`.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_World_property_fallback_environment:
  60. .. rst-class:: classref-property
  61. :ref:`Environment<class_Environment>` **fallback_environment**
  62. .. rst-class:: classref-property-setget
  63. - void **set_fallback_environment** **(** :ref:`Environment<class_Environment>` value **)**
  64. - :ref:`Environment<class_Environment>` **get_fallback_environment** **(** **)**
  65. The World's fallback environment will be used if :ref:`environment<class_World_property_environment>` fails or is missing.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_World_property_navigation_map:
  69. .. rst-class:: classref-property
  70. :ref:`RID<class_RID>` **navigation_map**
  71. .. rst-class:: classref-property-setget
  72. - :ref:`RID<class_RID>` **get_navigation_map** **(** **)**
  73. The :ref:`RID<class_RID>` of this world's navigation map. Used by the :ref:`NavigationServer<class_NavigationServer>`.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_World_property_scenario:
  77. .. rst-class:: classref-property
  78. :ref:`RID<class_RID>` **scenario**
  79. .. rst-class:: classref-property-setget
  80. - :ref:`RID<class_RID>` **get_scenario** **(** **)**
  81. The World's visual scenario.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_World_property_space:
  85. .. rst-class:: classref-property
  86. :ref:`RID<class_RID>` **space**
  87. .. rst-class:: classref-property-setget
  88. - :ref:`RID<class_RID>` **get_space** **(** **)**
  89. The World's physics space.
  90. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  91. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  92. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  93. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`