class_world.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Class that has everything pertaining to a world.
  13. Properties
  14. ----------
  15. +---------------------------------------------------------------+------------------------------------------------------------------------+
  16. | :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` | :ref:`direct_space_state<class_World_property_direct_space_state>` |
  17. +---------------------------------------------------------------+------------------------------------------------------------------------+
  18. | :ref:`Environment<class_Environment>` | :ref:`environment<class_World_property_environment>` |
  19. +---------------------------------------------------------------+------------------------------------------------------------------------+
  20. | :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World_property_fallback_environment>` |
  21. +---------------------------------------------------------------+------------------------------------------------------------------------+
  22. | :ref:`RID<class_RID>` | :ref:`scenario<class_World_property_scenario>` |
  23. +---------------------------------------------------------------+------------------------------------------------------------------------+
  24. | :ref:`RID<class_RID>` | :ref:`space<class_World_property_space>` |
  25. +---------------------------------------------------------------+------------------------------------------------------------------------+
  26. Description
  27. -----------
  28. 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.
  29. Tutorials
  30. ---------
  31. - :doc:`../tutorials/physics/ray-casting`
  32. Property Descriptions
  33. ---------------------
  34. .. _class_World_property_direct_space_state:
  35. - :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` **direct_space_state**
  36. +----------+--------------------------+
  37. | *Getter* | get_direct_space_state() |
  38. +----------+--------------------------+
  39. The World's physics direct space state, used for making various queries. Might be used only during ``_physics_process``.
  40. ----
  41. .. _class_World_property_environment:
  42. - :ref:`Environment<class_Environment>` **environment**
  43. +----------+------------------------+
  44. | *Setter* | set_environment(value) |
  45. +----------+------------------------+
  46. | *Getter* | get_environment() |
  47. +----------+------------------------+
  48. The World's :ref:`Environment<class_Environment>`.
  49. ----
  50. .. _class_World_property_fallback_environment:
  51. - :ref:`Environment<class_Environment>` **fallback_environment**
  52. +----------+---------------------------------+
  53. | *Setter* | set_fallback_environment(value) |
  54. +----------+---------------------------------+
  55. | *Getter* | get_fallback_environment() |
  56. +----------+---------------------------------+
  57. The World's fallback_environment will be used if the World's :ref:`Environment<class_Environment>` fails or is missing.
  58. ----
  59. .. _class_World_property_scenario:
  60. - :ref:`RID<class_RID>` **scenario**
  61. +----------+----------------+
  62. | *Getter* | get_scenario() |
  63. +----------+----------------+
  64. The World's visual scenario.
  65. ----
  66. .. _class_World_property_space:
  67. - :ref:`RID<class_RID>` **space**
  68. +----------+-------------+
  69. | *Getter* | get_space() |
  70. +----------+-------------+
  71. The World's physics space.