class_world.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.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:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` | :ref:`direct_space_state<class_World_property_direct_space_state>` |
  20. +---------------------------------------------------------------+------------------------------------------------------------------------+
  21. | :ref:`Environment<class_Environment>` | :ref:`environment<class_World_property_environment>` |
  22. +---------------------------------------------------------------+------------------------------------------------------------------------+
  23. | :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World_property_fallback_environment>` |
  24. +---------------------------------------------------------------+------------------------------------------------------------------------+
  25. | :ref:`RID<class_RID>` | :ref:`scenario<class_World_property_scenario>` |
  26. +---------------------------------------------------------------+------------------------------------------------------------------------+
  27. | :ref:`RID<class_RID>` | :ref:`space<class_World_property_space>` |
  28. +---------------------------------------------------------------+------------------------------------------------------------------------+
  29. Property Descriptions
  30. ---------------------
  31. .. _class_World_property_direct_space_state:
  32. - :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>` **direct_space_state**
  33. +----------+--------------------------+
  34. | *Getter* | get_direct_space_state() |
  35. +----------+--------------------------+
  36. Direct access to the world's physics 3D space state. Used for querying current and potential collisions.
  37. ----
  38. .. _class_World_property_environment:
  39. - :ref:`Environment<class_Environment>` **environment**
  40. +----------+------------------------+
  41. | *Setter* | set_environment(value) |
  42. +----------+------------------------+
  43. | *Getter* | get_environment() |
  44. +----------+------------------------+
  45. The World's :ref:`Environment<class_Environment>`.
  46. ----
  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. ----
  56. .. _class_World_property_scenario:
  57. - :ref:`RID<class_RID>` **scenario**
  58. +----------+----------------+
  59. | *Getter* | get_scenario() |
  60. +----------+----------------+
  61. The World's visual scenario.
  62. ----
  63. .. _class_World_property_space:
  64. - :ref:`RID<class_RID>` **space**
  65. +----------+-------------+
  66. | *Getter* | get_space() |
  67. +----------+-------------+
  68. The World's physics space.
  69. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  70. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  71. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`