Attention
You are reading the latest
(unstable) version of this documentation, which may document features not available
or compatible with Godot 3.x.
Checking the stable version of the documentation...
Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0
. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
World3D¶
Inherits: Resource < RefCounted < Object
Class that has everything pertaining to a world.
Description¶
Class that has everything pertaining to a world. A physics space, a visual scenario and a sound space. Node3D nodes register their resources into the current world.
Tutorials¶
Properties¶
Property Descriptions¶
CameraAttributes camera_attributes
void set_camera_attributes ( CameraAttributes value )
CameraAttributes get_camera_attributes ( )
The default CameraAttributes resource to use if none set on the Camera3D.
PhysicsDirectSpaceState3D direct_space_state
PhysicsDirectSpaceState3D get_direct_space_state ( )
Direct access to the world's physics 3D space state. Used for querying current and potential collisions. When using multi-threaded physics, access is limited to Node._physics_process in the main thread.
Environment environment
void set_environment ( Environment value )
Environment get_environment ( )
The World3D's Environment.
Environment fallback_environment
void set_fallback_environment ( Environment value )
Environment get_fallback_environment ( )
The World3D's fallback environment will be used if environment fails or is missing.
RID get_navigation_map ( )
The RID of this world's navigation map. Used by the NavigationServer3D.
RID scenario
RID get_scenario ( )
The World3D's visual scenario.
RID space
RID get_space ( )
The World3D's physics space.