class_world3d.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 World3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_World3D:
  6. World3D
  7. =======
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :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. Node3D nodes register their resources into the current world.
  13. Tutorials
  14. ---------
  15. - :doc:`Ray-casting <../tutorials/physics/ray-casting>`
  16. Properties
  17. ----------
  18. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  19. | :ref:`CameraEffects<class_CameraEffects>` | :ref:`camera_effects<class_World3D_property_camera_effects>` |
  20. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  21. | :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` | :ref:`direct_space_state<class_World3D_property_direct_space_state>` |
  22. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  23. | :ref:`Environment<class_Environment>` | :ref:`environment<class_World3D_property_environment>` |
  24. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  25. | :ref:`Environment<class_Environment>` | :ref:`fallback_environment<class_World3D_property_fallback_environment>` |
  26. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  27. | :ref:`RID<class_RID>` | :ref:`navigation_map<class_World3D_property_navigation_map>` |
  28. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  29. | :ref:`RID<class_RID>` | :ref:`scenario<class_World3D_property_scenario>` |
  30. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  31. | :ref:`RID<class_RID>` | :ref:`space<class_World3D_property_space>` |
  32. +-------------------------------------------------------------------+--------------------------------------------------------------------------+
  33. Property Descriptions
  34. ---------------------
  35. .. _class_World3D_property_camera_effects:
  36. - :ref:`CameraEffects<class_CameraEffects>` **camera_effects**
  37. +----------+---------------------------+
  38. | *Setter* | set_camera_effects(value) |
  39. +----------+---------------------------+
  40. | *Getter* | get_camera_effects() |
  41. +----------+---------------------------+
  42. ----
  43. .. _class_World3D_property_direct_space_state:
  44. - :ref:`PhysicsDirectSpaceState3D<class_PhysicsDirectSpaceState3D>` **direct_space_state**
  45. +----------+--------------------------+
  46. | *Getter* | get_direct_space_state() |
  47. +----------+--------------------------+
  48. Direct access to the world's physics 3D space state. Used for querying current and potential collisions.
  49. ----
  50. .. _class_World3D_property_environment:
  51. - :ref:`Environment<class_Environment>` **environment**
  52. +----------+------------------------+
  53. | *Setter* | set_environment(value) |
  54. +----------+------------------------+
  55. | *Getter* | get_environment() |
  56. +----------+------------------------+
  57. The World3D's :ref:`Environment<class_Environment>`.
  58. ----
  59. .. _class_World3D_property_fallback_environment:
  60. - :ref:`Environment<class_Environment>` **fallback_environment**
  61. +----------+---------------------------------+
  62. | *Setter* | set_fallback_environment(value) |
  63. +----------+---------------------------------+
  64. | *Getter* | get_fallback_environment() |
  65. +----------+---------------------------------+
  66. The World3D's fallback_environment will be used if the World3D's :ref:`Environment<class_Environment>` fails or is missing.
  67. ----
  68. .. _class_World3D_property_navigation_map:
  69. - :ref:`RID<class_RID>` **navigation_map**
  70. +----------+----------------------+
  71. | *Getter* | get_navigation_map() |
  72. +----------+----------------------+
  73. The :ref:`RID<class_RID>` of this world's navigation map. Used by the :ref:`NavigationServer3D<class_NavigationServer3D>`.
  74. ----
  75. .. _class_World3D_property_scenario:
  76. - :ref:`RID<class_RID>` **scenario**
  77. +----------+----------------+
  78. | *Getter* | get_scenario() |
  79. +----------+----------------+
  80. The World3D's visual scenario.
  81. ----
  82. .. _class_World3D_property_space:
  83. - :ref:`RID<class_RID>` **space**
  84. +----------+-------------+
  85. | *Getter* | get_space() |
  86. +----------+-------------+
  87. The World3D's physics space.
  88. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  89. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  90. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  91. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  92. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  93. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`