class_world.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the World.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_World:
  6. World
  7. =====
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Class that has everything pertaining to a world.
  10. Description
  11. -----------
  12. Class that has everything pertaining to a world. A physics space, a visual scenario and a sound space. Spatial nodes register their resources into the current world.
  13. Tutorials
  14. ---------
  15. - :doc:`../tutorials/physics/ray-casting`
  16. Properties
  17. ----------
  18. +---------------------------------------------------------------+------------------------------------------------------------------------+
  19. | :ref:`CameraEffects<class_CameraEffects>` | :ref:`camera_effects<class_World_property_camera_effects>` |
  20. +---------------------------------------------------------------+------------------------------------------------------------------------+
  21. | :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` | :ref:`direct_space_state<class_World_property_direct_space_state>` |
  22. +---------------------------------------------------------------+------------------------------------------------------------------------+
  23. | :ref:`Environment<class_Environment>` | :ref:`environment<class_World_property_environment>` |
  24. +---------------------------------------------------------------+------------------------------------------------------------------------+
  25. | :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World_property_fallback_environment>` |
  26. +---------------------------------------------------------------+------------------------------------------------------------------------+
  27. | :ref:`RID<class_RID>` | :ref:`scenario<class_World_property_scenario>` |
  28. +---------------------------------------------------------------+------------------------------------------------------------------------+
  29. | :ref:`RID<class_RID>` | :ref:`space<class_World_property_space>` |
  30. +---------------------------------------------------------------+------------------------------------------------------------------------+
  31. Property Descriptions
  32. ---------------------
  33. .. _class_World_property_camera_effects:
  34. - :ref:`CameraEffects<class_CameraEffects>` **camera_effects**
  35. +----------+---------------------------+
  36. | *Setter* | set_camera_effects(value) |
  37. +----------+---------------------------+
  38. | *Getter* | get_camera_effects() |
  39. +----------+---------------------------+
  40. ----
  41. .. _class_World_property_direct_space_state:
  42. - :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` **direct_space_state**
  43. +----------+--------------------------+
  44. | *Getter* | get_direct_space_state() |
  45. +----------+--------------------------+
  46. The World's physics direct space state, used for making various queries. Might be used only during ``_physics_process``.
  47. ----
  48. .. _class_World_property_environment:
  49. - :ref:`Environment<class_Environment>` **environment**
  50. +----------+------------------------+
  51. | *Setter* | set_environment(value) |
  52. +----------+------------------------+
  53. | *Getter* | get_environment() |
  54. +----------+------------------------+
  55. The World's :ref:`Environment<class_Environment>`.
  56. ----
  57. .. _class_World_property_fallback_environment:
  58. - :ref:`Environment<class_Environment>` **fallback_environment**
  59. +----------+---------------------------------+
  60. | *Setter* | set_fallback_environment(value) |
  61. +----------+---------------------------------+
  62. | *Getter* | get_fallback_environment() |
  63. +----------+---------------------------------+
  64. The World's fallback_environment will be used if the World's :ref:`Environment<class_Environment>` fails or is missing.
  65. ----
  66. .. _class_World_property_scenario:
  67. - :ref:`RID<class_RID>` **scenario**
  68. +----------+----------------+
  69. | *Getter* | get_scenario() |
  70. +----------+----------------+
  71. The World's visual scenario.
  72. ----
  73. .. _class_World_property_space:
  74. - :ref:`RID<class_RID>` **space**
  75. +----------+-------------+
  76. | *Getter* | get_space() |
  77. +----------+-------------+
  78. The World's physics space.