Struct World

Class that has everything pertaining to a world.

struct World ;

A physics space, a visual scenario and a sound space. Spatial nodes register their resources into the current world.

Properties

NameTypeDescription
directSpaceState[get] PhysicsDirectSpaceStateThe World's physics direct space state, used for making various queries. Might be used only during _physics_process.
environment[get, set] EnvironmentThe World's Environment.
fallbackEnvironment[get, set] EnvironmentThe World's fallback_environment will be used if the World's Environment fails or is missing.
scenario[get] RIDThe World's visual scenario.
space[get] RIDThe World's physics space.

Methods

NameDescription
getDirectSpaceState
getEnvironment
getFallbackEnvironment
getScenario
getSpace
setEnvironment
setFallbackEnvironment