Class that has everything pertaining to a world.
    public class World : Resource

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.

Inheritance Chain

Constructors

    public World()

Properties

    public PhysicsDirectSpaceState DirectSpaceState { get; }

The World’s physics direct space state, used for making various queries. Might be used only during _physics_process.

    public Environment Environment { get; set; }

The World’s Environment.

    public Environment FallbackEnvironment { get; set; }

The World’s fallback_environment will be used if the World’s Environment fails or is missing.

    public RID Scenario { get; }

The World’s visual scenario.

    public RID Space { get; }

The World’s physics space.

Methods

    [Obsolete("GetDirectSpaceState is deprecated. Use the DirectSpaceState property instead.")]
    public PhysicsDirectSpaceState GetDirectSpaceState()

Getter for DirectSpaceState

    [Obsolete("GetEnvironment is deprecated. Use the Environment property instead.")]
    public Environment GetEnvironment()

Getter for Environment

    [Obsolete("GetFallbackEnvironment is deprecated. Use the FallbackEnvironment property instead.")]
    public Environment GetFallbackEnvironment()

Getter for FallbackEnvironment

    [Obsolete("GetScenario is deprecated. Use the Scenario property instead.")]
    public RID GetScenario()

Getter for Scenario

    [Obsolete("GetSpace is deprecated. Use the Space property instead.")]
    public RID GetSpace()

Getter for Space

    [Obsolete("SetEnvironment is deprecated. Use the Environment property instead.")]
    public void SetEnvironment(Environment env)

Setter for Environment

    [Obsolete("SetFallbackEnvironment is deprecated. Use the FallbackEnvironment property instead.")]
    public void SetFallbackEnvironment(Environment env)

Setter for FallbackEnvironment

Tags: