building destruction particles
This commit is contained in:
parent
dba09165e8
commit
afc0aab441
127 changed files with 27285 additions and 240 deletions
10
addons/voronoishatter/voronoi/model/voronoicell.gd
Normal file
10
addons/voronoishatter/voronoi/model/voronoicell.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
## Represents a voronoi "cell," a collection of vertices (Vector3) that are associated with a sample site
|
||||
extends Object
|
||||
|
||||
class_name VoronoiCell
|
||||
|
||||
var vertices: Array[Vector3] = []
|
||||
var site: Vector3
|
||||
|
||||
func is_valid() -> bool:
|
||||
return len(vertices) >= 4
|
||||
1
addons/voronoishatter/voronoi/model/voronoicell.gd.uid
Normal file
1
addons/voronoishatter/voronoi/model/voronoicell.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dx5577o370jiw
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
## Configuration options for using VoronoiGenerator
|
||||
extends Object
|
||||
|
||||
class_name VoronoiGeneratorConfig
|
||||
|
||||
# The seed influencing sample point placement
|
||||
var random_seed: int
|
||||
# The number of samples to intersperse in the AABB
|
||||
var num_samples: int
|
||||
# (optional) A 3D texture to finely control the seed placement
|
||||
var texture: Texture3D
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://cuy041nbmm0nf
|
||||
8
addons/voronoishatter/voronoi/model/voronoimesh.gd
Normal file
8
addons/voronoishatter/voronoi/model/voronoimesh.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
## Represents positioning information, mesh data, and a reference to the original target mesh.
|
||||
extends Object
|
||||
|
||||
class_name VoronoiMesh
|
||||
|
||||
var mesh: ArrayMesh
|
||||
var position: Vector3
|
||||
var target: MeshInstance3D
|
||||
1
addons/voronoishatter/voronoi/model/voronoimesh.gd.uid
Normal file
1
addons/voronoishatter/voronoi/model/voronoimesh.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://doh2rqeb2qw42
|
||||
Loading…
Add table
Add a link
Reference in a new issue