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
- 0pieces
Parameters 6
strengthfloatBreak 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_variationfloatRandom +- variation of the strength per bond (fraction).
scale_by_areatoggleScale strength by the contact area relative to the average bond (bigger shared faces hold better).
search_distancefloatMax gap between pieces that still counts as touching; 0 = auto (0.3% of the bbox diagonal).
min_contactsintMinimum number of nearby surface points for a bond (3 = shared face, 2 = also shared edges).
seedintSeed 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.