World.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="World" inherits="Resource" version="3.2">
  3. <brief_description>
  4. Class that has everything pertaining to a world.
  5. </brief_description>
  6. <description>
  7. 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.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/physics/ray-casting.html</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="direct_space_state" type="PhysicsDirectSpaceState" setter="" getter="get_direct_space_state">
  16. Direct access to the world's physics 3D space state. Used for querying current and potential collisions. Must only be accessed from within [code]_physics_process(delta)[/code].
  17. </member>
  18. <member name="environment" type="Environment" setter="set_environment" getter="get_environment">
  19. The World's [Environment].
  20. </member>
  21. <member name="fallback_environment" type="Environment" setter="set_fallback_environment" getter="get_fallback_environment">
  22. The World's fallback_environment will be used if the World's [Environment] fails or is missing.
  23. </member>
  24. <member name="scenario" type="RID" setter="" getter="get_scenario">
  25. The World's visual scenario.
  26. </member>
  27. <member name="space" type="RID" setter="" getter="get_space">
  28. The World's physics space.
  29. </member>
  30. </members>
  31. <constants>
  32. </constants>
  33. </class>