godot_voxel/doc/classes/VoxelToolTerrain.xml
2021-05-31 17:23:29 +01:00

30 lines
990 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelToolTerrain" inherits="VoxelTool" version="3.4">
<brief_description>
Implementation of [VoxelTool] optimized for uses on [VoxelTerrain].
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="run_blocky_random_tick" qualifiers="const">
<return type="void">
</return>
<argument index="0" name="area" type="AABB">
</argument>
<argument index="1" name="voxel_count" type="int">
</argument>
<argument index="2" name="callback" type="FuncRef">
</argument>
<argument index="3" name="batch_count" type="int" default="16">
</argument>
<description>
Picks random voxels within the specified area and executes a function on them. This only works for terrains using [VoxelMesherBlocky]. Only voxels where [member Voxel.random_tickable] is [code]true[/code] will be picked.
</description>
</method>
</methods>
<constants>
</constants>
</class>