d5a69003c3
VoxelGeneratorHeightmap.height_range is wrong in the doc. VoxelTool lost all default values in doc. These are likely Godot bugs...
2.9 KiB
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
-
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 )
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