Destruction node

shatter_glass

Shatters a flat panel (glass window, ice sheet, thin slab) with a radial + concentric crack pattern around an impact point. The panel normal is its thinnest bbox axis. Output pieces like voronoi_fracture (prim `name`, groups `inside`/`outside`, `Cd`). Pair with rbd_solver (activation='radius' around the impact) for a window smash.

Inputs

Parameters 9

impact_uvvector 2
Default [0.5, 0.55]

Impact point in the panel's normalised 2D coordinates (0..1 along its two largest bbox axes).

radialint
Default 14Range 3 to 64

Number of radial cracks.

ringsint
Default 6Range 1 to 30

Number of concentric crack rings.

ring_growthfloat
Default 1.45Range 1 to 4

Each ring is this much farther out than the previous (small shards near the impact).

first_ringfloat
Default 0.04Range 0.001 to …

Radius of the first ring as a fraction of the panel size.

jitterfloat
Default 0.35Range 0 to 0.9

Randomness of crack angles and ring radii.

seedint
Default 0

Random seed.

inside_colorcolour
Default [0.55, 0.75, 0.8]

Prim Cd of crack faces.

outside_colorcolour
Default [0.7, 0.85, 0.9]

Prim Cd of panel faces when the input has no Cd.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type shatter_glass), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"shatter_glass","name":"my_shatter_glass","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.