VoxelBlockyModelCube

Inherits: VoxelBlockyModel

Generates a cube model with specific tiles on its sides.

Properties:

Type Name Default
Vector2i atlas_size_in_tiles Vector2i(16, 16)
AABB[] collision_aabbs [AABB(0, 0, 0, 1, 1, 1)]
float height 1.0
int mesh_ortho_rotation_index 0

Methods:

Return Signature
Vector2i get_tile ( Side side ) const
void set_tile ( Side side, Vector2i position )

Property Descriptions

Vector2i atlas_size_in_tiles = Vector2i(16, 16)

Sets a reference size of texture atlas, in tiles. It must be set so the model generates correct texture coordinates from specified tile positions.

If you are not using an atlas and every side uses the same full texture, use (1,1).

AABB[] collision_aabbs = [AABB(0, 0, 0, 1, 1, 1)]

float height = 1.0

(This property has no documentation)

int mesh_ortho_rotation_index = 0

(This property has no documentation)

Method Descriptions

Vector2i get_tile( Side side )

(This method has no documentation)

void set_tile( Side side, Vector2i position )

(This method has no documentation)

Generated on Jan 26, 2026