class_world.rst 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. Member Functions
  13. ----------------
  14. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`PhysicsDirectSpaceState<class_physicsdirectspacestate>` | :ref:`get_direct_space_state<class_World_get_direct_space_state>` **(** **)** |
  16. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Environment<class_environment>` | :ref:`get_environment<class_World_get_environment>` **(** **)** const |
  18. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Environment<class_environment>` | :ref:`get_fallback_environment<class_World_get_fallback_environment>` **(** **)** const |
  20. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`RID<class_rid>` | :ref:`get_scenario<class_World_get_scenario>` **(** **)** const |
  22. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`RID<class_rid>` | :ref:`get_space<class_World_get_space>` **(** **)** const |
  24. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_environment<class_World_set_environment>` **(** :ref:`Environment<class_environment>` env **)** |
  26. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_fallback_environment<class_World_set_fallback_environment>` **(** :ref:`Environment<class_environment>` env **)** |
  28. +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  29. Member Variables
  30. ----------------
  31. - :ref:`Environment<class_environment>` **environment**
  32. - :ref:`Environment<class_environment>` **fallback_environment**
  33. Description
  34. -----------
  35. 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.
  36. Member Function Description
  37. ---------------------------
  38. .. _class_World_get_direct_space_state:
  39. - :ref:`PhysicsDirectSpaceState<class_physicsdirectspacestate>` **get_direct_space_state** **(** **)**
  40. .. _class_World_get_environment:
  41. - :ref:`Environment<class_environment>` **get_environment** **(** **)** const
  42. .. _class_World_get_fallback_environment:
  43. - :ref:`Environment<class_environment>` **get_fallback_environment** **(** **)** const
  44. .. _class_World_get_scenario:
  45. - :ref:`RID<class_rid>` **get_scenario** **(** **)** const
  46. .. _class_World_get_space:
  47. - :ref:`RID<class_rid>` **get_space** **(** **)** const
  48. .. _class_World_set_environment:
  49. - void **set_environment** **(** :ref:`Environment<class_environment>` env **)**
  50. .. _class_World_set_fallback_environment:
  51. - void **set_fallback_environment** **(** :ref:`Environment<class_environment>` env **)**