World

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getDirectSpaceState
PhysicsDirectSpaceState getDirectSpaceState()
getEnvironment
Ref!Environment getEnvironment()
getFallbackEnvironment
Ref!Environment getFallbackEnvironment()
getScenario
RID getScenario()
getSpace
RID getSpace()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(World other)
opEquals
bool opEquals(typeof(null) n)
setEnvironment
void setEnvironment(Environment env)
setFallbackEnvironment
void setFallbackEnvironment(Environment env)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

directSpaceState
PhysicsDirectSpaceState directSpaceState [@property getter]

Direct access to the world's physics 3D space state. Used for querying current and potential collisions.

environment
Environment environment [@property getter]
Environment environment [@property setter]

The World's Environment.

fallbackEnvironment
Environment fallbackEnvironment [@property getter]
Environment fallbackEnvironment [@property setter]

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

scenario
RID scenario [@property getter]

The World's visual scenario.

space
RID space [@property getter]

The World's physics space.

Static functions

_new
World _new()

Construct a new instance of World. Note: use memnew!World instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta