VoxelInstancer

Inherits: Node3D

Spawns items on top of voxel surfaces.

Description:

Add-on to voxel nodes, allowing to spawn elements on the surface. These elements are rendered with hardware instancing, can have collisions, and also be persistent. It must be child of a voxel node.

Properties:

Type Name Default
VoxelInstanceLibrary library
int up_mode 0

Methods:

Return Signature
void debug_dump_as_scene ( String fpath ) const
int debug_get_block_count ( ) const
bool debug_get_draw_flag ( int flag ) const
Dictionary debug_get_instance_counts ( ) const
bool debug_is_draw_enabled ( ) const
void debug_set_draw_enabled ( bool enabled )
void debug_set_draw_flag ( int flag, bool enabled )

Enumerations:

enum UpMode:

  • UP_MODE_POSITIVE_Y = 0
  • UP_MODE_SPHERE = 1

enum DebugDrawFlag:

  • DEBUG_DRAW_ALL_BLOCKS = 0
  • DEBUG_DRAW_EDITED_BLOCKS = 1
  • DEBUG_DRAW_FLAGS_COUNT = 2

Constants:

  • MAX_LOD = 8

Property Descriptions

Method Descriptions

  • void debug_dump_as_scene( String fpath )

  • int debug_get_block_count( )

  • bool debug_get_draw_flag( int flag )

  • Dictionary debug_get_instance_counts( )

  • bool debug_is_draw_enabled( )

  • void debug_set_draw_enabled( bool enabled )

  • void debug_set_draw_flag( int flag, bool enabled )

Generated on Sep 12, 2023