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

VoxelInstanceLibrary library

(This property has no documentation)

int up_mode = 0

(This property has no documentation)

Method Descriptions

void debug_dump_as_scene( String fpath )

(This method has no documentation)

int debug_get_block_count( )

(This method has no documentation)

bool debug_get_draw_flag( int flag )

(This method has no documentation)

Dictionary debug_get_instance_counts( )

(This method has no documentation)

bool debug_is_draw_enabled( )

(This method has no documentation)

void debug_set_draw_enabled( bool enabled )

(This method has no documentation)

void debug_set_draw_flag( int flag, bool enabled )

(This method has no documentation)

Generated on Apr 06, 2024