2019-05-27 03:06:28 -07:00
|
|
|
|
# Class: Voxel
|
|
|
|
|
|
|
|
|
|
Inherits: Resource
|
|
|
|
|
|
|
|
|
|
_Godot version: 3.2_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Online Tutorials:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Constants:
|
|
|
|
|
|
|
|
|
|
#### <20> GeometryType.GEOMETRY_NONE = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> GeometryType.GEOMETRY_CUBE = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> GeometryType.GEOMETRY_MAX = 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> ChannelMode.CHANNEL_TYPE = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> ChannelMode.CHANNEL_ISOLEVEL = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> ChannelMode.CHANNEL_DATA = 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Properties:
|
|
|
|
|
|
|
|
|
|
#### <20> Color color
|
|
|
|
|
|
|
|
|
|
`set_color (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_color ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> int Voxel.GeometryType.geometry_type
|
|
|
|
|
|
|
|
|
|
`set_geometry_type (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_geometry_type ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> int material_id
|
|
|
|
|
|
|
|
|
|
`set_material_id (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_material_id ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> bool transparent
|
|
|
|
|
|
|
|
|
|
`set_transparent (value)` setter
|
|
|
|
|
|
|
|
|
|
`is_transparent ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> String voxel_name
|
|
|
|
|
|
|
|
|
|
`set_voxel_name (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_voxel_name ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
|
|
|
|
|
|
#### <20> int get_id ( ) const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Voxel set_color ( Color color )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Voxel set_id ( int id )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Voxel set_material_id ( int id )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Voxel set_transparent ( bool transparent=true )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Voxel set_voxel_name ( String name )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Signals:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
* [Class List](Class_List.md)
|
|
|
|
|
* [Doc Index](../01_get-started.md)
|
|
|
|
|
|
2019-08-25 07:34:43 -07:00
|
|
|
|
_Generated on Aug 25, 2019_
|