W3cubDocs

/Godot 3.1

World

Inherits: Resource < Reference < Object

Category: Core

Brief Description

Class that has everything pertaining to a world.

Properties

PhysicsDirectSpaceState direct_space_state
Environment environment
Environment fallback_environment
RID scenario
RID space

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.

Tutorials

Property Descriptions

PhysicsDirectSpaceState direct_space_state

Getter get_direct_space_state()

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

Environment environment

Setter set_environment(value)
Getter get_environment()

The World’s Environment.

Environment fallback_environment

Setter set_fallback_environment(value)
Getter get_fallback_environment()

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

RID scenario

Getter get_scenario()

The World’s visual scenario.

RID space

Getter get_space()

The World’s physics space.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_world.html