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
| Name | Type | Description |
|---|---|---|
directSpaceState[get]
|
PhysicsDirectSpaceState | The World's physics direct space state, used for making various queries. Might be used only during _physics_process.
|
environment[get, set]
|
Environment | The World's Environment.
|
fallbackEnvironment[get, set]
|
Environment | The World's fallback_environment will be used if the World's Environment fails or is missing.
|
scenario[get]
|
RID | The World's visual scenario. |
space[get]
|
RID | The World's physics space. |
Methods
| Name | Description |
|---|---|
getDirectSpaceState
|
|
getEnvironment
|
|
getFallbackEnvironment
|
|
getScenario
|
|
getSpace
|
|
setEnvironment
|
|
setFallbackEnvironment
|