Destruction node

glue_constraints

Builds a glue constraint network between touching pieces (prim `name`) for rbd_solver input 1. Output: one point per piece at its centre (point `name`), and a 2-point polyline per touching pair with prims `constraint_name`='glue', `strength` (float, m/s break threshold), `anchor` (3-float contact patch centre), `anchor_radius`, `area` (approximate contact size) and green Cd for display.

Inputs

Parameters 6

strengthfloat
Default 1.5Range 0 to …

Break threshold of each glue bond in m/s: rbd_solver breaks a bond when it would have to cancel a relative velocity above this within one substep. 0.5 brittle (crumbles under small hits), 1.5 solid (default: a 12 m/s ball punches a hole), 5+ very strong. Gravity alone loads bonds ~0.2.

strength_variationfloat
Default 0.3Range 0 to 1

Random +- variation of the strength per bond (fraction).

scale_by_areatoggle
Default on

Scale strength by the contact area relative to the average bond (bigger shared faces hold better).

search_distancefloat
Default 0Range 0 to …

Max gap between pieces that still counts as touching; 0 = auto (0.3% of the bbox diagonal).

min_contactsint
Default 3Range 1 to …

Minimum number of nearby surface points for a bond (3 = shared face, 2 = also shared edges).

seedint
Default 0

Seed for strength variation.

Use it

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

{"op":"add","type":"glue_constraints","name":"my_glue_constraints","params":{},"inputs":["src"]}

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