2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-05 22:07:03 +02:00
<class name= "World3D" inherits= "Resource" version= "4.2" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 22:42:36 +02:00
<brief_description >
2023-04-28 01:35:33 +02:00
A resource that holds all components of a 3D world, such as a visual scenario and a physics space.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2023-04-28 01:35:33 +02:00
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.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
2021-11-15 10:43:07 +01:00
<link title= "Ray-casting" > $DOCS_URL/tutorials/physics/ray-casting.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<members >
2022-08-01 01:20:24 +02:00
<member name= "camera_attributes" type= "CameraAttributes" setter= "set_camera_attributes" getter= "get_camera_attributes" >
The default [CameraAttributes] resource to use if none set on the [Camera3D].
2020-02-12 09:59:06 +01:00
</member>
2020-03-30 18:22:57 +02:00
<member name= "direct_space_state" type= "PhysicsDirectSpaceState3D" setter= "" getter= "get_direct_space_state" >
2022-09-24 13:46:06 +02:00
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 [method Node._physics_process] in the main thread.
2018-01-11 23:38:35 +01:00
</member>
2019-07-15 20:42:47 +02:00
<member name= "environment" type= "Environment" setter= "set_environment" getter= "get_environment" >
2020-03-30 18:22:57 +02:00
The World3D's [Environment].
2017-09-12 22:42:36 +02:00
</member>
2019-07-15 20:42:47 +02:00
<member name= "fallback_environment" type= "Environment" setter= "set_fallback_environment" getter= "get_fallback_environment" >
2022-06-17 09:15:30 +02:00
The World3D's fallback environment will be used if [member environment] fails or is missing.
2017-09-12 22:42:36 +02:00
</member>
2021-03-08 09:47:18 +01:00
<member name= "navigation_map" type= "RID" setter= "" getter= "get_navigation_map" >
The [RID] of this world's navigation map. Used by the [NavigationServer3D].
</member>
2019-06-29 21:22:15 +02:00
<member name= "scenario" type= "RID" setter= "" getter= "get_scenario" >
2020-03-30 18:22:57 +02:00
The World3D's visual scenario.
2018-01-11 23:38:35 +01:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "space" type= "RID" setter= "" getter= "get_space" >
2020-03-30 18:22:57 +02:00
The World3D's physics space.
2018-01-11 23:38:35 +01:00
</member>
2017-09-12 22:42:36 +02:00
</members>
</class>