class_world.rst 3.8 KB

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