building destruction particles

This commit is contained in:
Michael Campbell 2026-04-15 01:14:14 -04:00
parent dba09165e8
commit afc0aab441
127 changed files with 27285 additions and 240 deletions

View 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

View file

@ -0,0 +1 @@
uid://dx5577o370jiw

View file

@ -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

View file

@ -0,0 +1 @@
uid://cuy041nbmm0nf

View 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

View file

@ -0,0 +1 @@
uid://doh2rqeb2qw42