2019-08-26 02:54:57 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-08-10 21:15:37 +01:00
|
|
|
<class name="VoxelLodTerrain" inherits="Spatial" version="3.2">
|
2019-08-26 02:54:57 +01:00
|
|
|
<brief_description>
|
2020-09-14 01:58:35 +01:00
|
|
|
Voxel volume using variable level of detail.
|
2019-08-26 02:54:57 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2020-02-13 00:48:18 +08:00
|
|
|
<method name="debug_get_block_info" qualifiers="const">
|
2019-08-26 02:54:57 +01:00
|
|
|
<return type="Dictionary">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="block_pos" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="lod" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2020-02-13 00:48:18 +08:00
|
|
|
<method name="debug_get_octrees" qualifiers="const">
|
|
|
|
<return type="Array">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="debug_print_sdf_top_down" qualifiers="const">
|
|
|
|
<return type="Array">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="center" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="extents" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="debug_raycast_block" qualifiers="const">
|
|
|
|
<return type="Array">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="origin" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="dir" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2019-08-26 02:54:57 +01:00
|
|
|
<method name="get_block_region_extent" qualifiers="const">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2020-02-13 00:48:18 +08:00
|
|
|
<method name="get_block_size" qualifiers="const">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2019-08-26 02:54:57 +01:00
|
|
|
<method name="get_statistics" qualifiers="const">
|
|
|
|
<return type="Dictionary">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-09-28 18:37:34 +01:00
|
|
|
Gets debug information about how much time is spent processing the terrain.
|
|
|
|
The returned dictionary has the following structure:
|
|
|
|
[codeblock]
|
|
|
|
{
|
|
|
|
"time_detect_required_blocks": int,
|
|
|
|
"time_request_blocks_to_load": int,
|
|
|
|
"time_process_load_responses": int,
|
|
|
|
"time_request_blocks_to_update": int,
|
|
|
|
"time_process_update_responses": int,
|
|
|
|
"remaining_main_thread_blocks": int,
|
|
|
|
"dropped_block_loads": int,
|
|
|
|
"dropped_block_meshs": int,
|
|
|
|
"updated_blocks": int,
|
|
|
|
"blocked_lods": int
|
|
|
|
}
|
|
|
|
[/codeblock]
|
2019-08-26 02:54:57 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
2020-02-13 00:48:18 +08:00
|
|
|
<method name="get_voxel_tool">
|
|
|
|
<return type="VoxelTool">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2020-08-10 21:15:37 +01:00
|
|
|
<method name="save_modified_blocks">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2019-08-26 02:54:57 +01:00
|
|
|
<method name="voxel_to_block_position" qualifiers="const">
|
|
|
|
<return type="Vector3">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="lod_index" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="arg1" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="collision_lod_count" type="int" setter="set_collision_lod_count" getter="get_collision_lod_count" default="-1">
|
|
|
|
</member>
|
|
|
|
<member name="generate_collisions" type="bool" setter="set_generate_collisions" getter="get_generate_collisions" default="true">
|
|
|
|
</member>
|
2020-02-13 00:48:18 +08:00
|
|
|
<member name="lod_count" type="int" setter="set_lod_count" getter="get_lod_count" default="4">
|
2019-08-26 02:54:57 +01:00
|
|
|
</member>
|
|
|
|
<member name="lod_split_scale" type="float" setter="set_lod_split_scale" getter="get_lod_split_scale" default="3.0">
|
|
|
|
</member>
|
|
|
|
<member name="material" type="Material" setter="set_material" getter="get_material">
|
|
|
|
</member>
|
2020-09-14 01:58:35 +01:00
|
|
|
<member name="run_stream_in_editor" type="bool" setter="set_run_stream_in_editor" getter="is_stream_running_in_editor" default="true">
|
|
|
|
</member>
|
2019-08-26 02:54:57 +01:00
|
|
|
<member name="stream" type="VoxelStream" setter="set_stream" getter="get_stream">
|
|
|
|
</member>
|
2020-02-13 00:48:18 +08:00
|
|
|
<member name="view_distance" type="int" setter="set_view_distance" getter="get_view_distance" default="512">
|
2019-08-26 02:54:57 +01:00
|
|
|
</member>
|
|
|
|
<member name="viewer_path" type="NodePath" setter="set_viewer_path" getter="get_viewer_path" default="NodePath("")">
|
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|