class_world.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. .. _class_World_property_environment:
  41. - :ref:`Environment<class_Environment>` **environment**
  42. +----------+------------------------+
  43. | *Setter* | set_environment(value) |
  44. +----------+------------------------+
  45. | *Getter* | get_environment() |
  46. +----------+------------------------+
  47. The World's :ref:`Environment<class_Environment>`.
  48. .. _class_World_property_fallback_environment:
  49. - :ref:`Environment<class_Environment>` **fallback_environment**
  50. +----------+---------------------------------+
  51. | *Setter* | set_fallback_environment(value) |
  52. +----------+---------------------------------+
  53. | *Getter* | get_fallback_environment() |
  54. +----------+---------------------------------+
  55. The World's fallback_environment will be used if the World's :ref:`Environment<class_Environment>` fails or is missing.
  56. .. _class_World_property_scenario:
  57. - :ref:`RID<class_RID>` **scenario**
  58. +----------+----------------+
  59. | *Getter* | get_scenario() |
  60. +----------+----------------+
  61. The World's visual scenario.
  62. .. _class_World_property_space:
  63. - :ref:`RID<class_RID>` **space**
  64. +----------+-------------+
  65. | *Getter* | get_space() |
  66. +----------+-------------+
  67. The World's physics space.