Class World3D
A resource that holds all components of a 3D world, such as a visual scenario and a physics space.
- Inheritance
-
World3D
Remarks
Class that has everything pertaining to a world: A physics space, a visual scenario, and a sound space. 3D nodes register their resources into the current 3D world.
See Also
Properties
camera_attributes
The default CameraAttributes resource to use if none set on the Camera3D.
var camera_attributes : CameraAttributes
Property Value
Remarks
- void set_camera_attributes(CameraAttributes value)
- CameraAttributes get_camera_attributes
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.
var direct_space_state : PhysicsDirectSpaceState3D
Property Value
Remarks
- PhysicsDirectSpaceState3D get_direct_space_state
environment
The World3D's Environment.
var environment : Environment
Property Value
Remarks
- void set_environment(Environment value)
- Environment get_environment
fallback_environment
The World3D's fallback environment will be used if environment fails or is missing.
var fallback_environment : Environment
Property Value
Remarks
- void set_fallback_environment(Environment value)
- Environment get_fallback_environment
navigation_map
The RID of this world's navigation map. Used by the NavigationServer3D.
var navigation_map : RID
Property Value
Remarks
- RID get_navigation_map
scenario
The World3D's visual scenario.
var scenario : RID
Property Value
Remarks
- RID get_scenario
space
The World3D's physics space.
var space : RID
Property Value
Remarks
- RID get_space