.. 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:`RID` | :ref:`get_scenario` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_sound_space` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_space` **(** **)** const | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_environment` **(** :ref:`Environment` env **)** | +----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+ 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_scenario: - :ref:`RID` **get_scenario** **(** **)** const .. _class_World_get_sound_space: - :ref:`RID` **get_sound_space** **(** **)** const .. _class_World_get_space: - :ref:`RID` **get_space** **(** **)** const .. _class_World_set_environment: - void **set_environment** **(** :ref:`Environment` env **)**