World3D
Inherits: Resource < RefCounted < Object
Description
Section titled “Description”A resource that holds all components of a 3D world, such as a visual scenario and a physics space.
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.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| CameraAttributes | camera_attributes |
|
| PhysicsDirectSpaceState3D | direct_space_state |
|
| Environment | environment |
|
| Environment | fallback_environment |
|
| RID | navigation_map |
|
| RID | scenario |
|
| RID | space |
Property descriptions
Section titled “Property descriptions”camera_attributes
CameraAttributes camera_attributes
The default CameraAttributes resource to use if none set on the Camera3D.
direct_space_state
PhysicsDirectSpaceState3D 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 Entity._step() in the main thread.
environment
Environment environment
The World3D’s Environment.
fallback_environment
Environment fallback_environment
The World3D’s fallback environment will be used if environment fails or is missing.
navigation_map
RID navigation_map
The RID of this world’s navigation map. Used by the NavigationSystem3D.
scenario
RID scenario
The World3D’s visual scenario.
space
RID space
The World3D’s physics space.
