godot_voxel/doc/source/api/VoxelToolTerrain.md
Marc Gilleron d5a69003c3 Add missing classes and run doctool (doctool has issues though)
VoxelGeneratorHeightmap.height_range is wrong in the doc.
VoxelTool lost all default values in doc.
These are likely Godot bugs...
2021-11-06 02:04:16 +00:00

2.9 KiB

VoxelToolTerrain

Inherits: VoxelTool

Implementation of VoxelTool specialized for uses on VoxelTerrain.

Description:

It's not a class to instantiate alone, you may get it from VoxelTerrain using the get_voxel_tool() method.

Methods:

Return Signature
void for_each_voxel_metadata_in_area ( AABB voxel_area, FuncRef callback )
void run_blocky_random_tick ( AABB area, int voxel_count, FuncRef callback, int batch_count=16 ) const

Method Descriptions

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 true will be picked.

Generated on Nov 06, 2021