.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_World: World ===== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Class that has everything pertaining to a world. Member Functions ---------------- +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PhysicsDirectSpaceState` | :ref:`get_direct_space_state` **(** **)** | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Environment` | :ref:`get_environment` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Environment` | :ref:`get_fallback_environment` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_scenario` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_space` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_environment` **(** :ref:`Environment` env **)** | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_fallback_environment` **(** :ref:`Environment` env **)** | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Environment` **environment** - :ref:`Environment` **fallback_environment** Description ----------- 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. Member Function Description --------------------------- .. _class_World_get_direct_space_state: - :ref:`PhysicsDirectSpaceState` **get_direct_space_state** **(** **)** .. _class_World_get_environment: - :ref:`Environment` **get_environment** **(** **)** const .. _class_World_get_fallback_environment: - :ref:`Environment` **get_fallback_environment** **(** **)** const .. _class_World_get_scenario: - :ref:`RID` **get_scenario** **(** **)** const .. _class_World_get_space: - :ref:`RID` **get_space** **(** **)** const .. _class_World_set_environment: - void **set_environment** **(** :ref:`Environment` env **)** .. _class_World_set_fallback_environment: - void **set_fallback_environment** **(** :ref:`Environment` env **)**