2019-05-27 03:06:28 -07:00
|
|
|
|
# Class: VoxelTerrain
|
|
|
|
|
|
|
|
|
|
Inherits: Spatial
|
|
|
|
|
|
|
|
|
|
_Godot version: 3.2_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Online Tutorials:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Constants:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Properties:
|
|
|
|
|
|
2019-08-25 07:34:43 -07:00
|
|
|
|
#### <20> bool generate_collisions
|
2019-05-27 03:06:28 -07:00
|
|
|
|
|
2019-08-25 07:34:43 -07:00
|
|
|
|
`set_generate_collisions (value)` setter
|
2019-05-27 03:06:28 -07:00
|
|
|
|
|
2019-08-25 07:34:43 -07:00
|
|
|
|
`get_generate_collisions ()` getter
|
2019-05-27 03:06:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> bool smooth_meshing_enabled
|
|
|
|
|
|
|
|
|
|
`set_smooth_meshing_enabled (value)` setter
|
|
|
|
|
|
|
|
|
|
`is_smooth_meshing_enabled ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> VoxelStream stream
|
|
|
|
|
|
|
|
|
|
`set_stream (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_stream ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> int view_distance
|
|
|
|
|
|
|
|
|
|
`set_view_distance (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_view_distance ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> NodePath viewer_path
|
|
|
|
|
|
|
|
|
|
`set_viewer_path (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_viewer_path ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> VoxelLibrary voxel_library
|
|
|
|
|
|
|
|
|
|
`set_voxel_library (value)` setter
|
|
|
|
|
|
|
|
|
|
`get_voxel_library ()` getter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
|
|
|
|
|
|
#### <20> Vector3 block_to_voxel ( Vector3 block_pos )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Material get_material ( int id ) const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Dictionary get_statistics ( ) const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> VoxelMap get_storage ( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> void make_area_dirty ( AABB aabb )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> void make_voxel_dirty ( Vector3 pos )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Variant raycast ( Vector3 origin, Vector3 direction, float max_distance=100 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> void set_material ( int id, Material material )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### <20> Vector3 voxel_to_block ( Vector3 voxel_pos )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Signals:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
* [Class List](Class_List.md)
|
|
|
|
|
* [Doc Index](../01_get-started.md)
|
|
|
|
|
|
2019-08-25 18:59:55 -07:00
|
|
|
|
_Generated on Aug 26, 2019_
|