Dynamics node
rbd_activate
Writes prim+point int `active` per piece (1 dynamic, 0 static until hit) for rbd_solver with activation='attribute'. Typical: activate a radius around an impact so the rest of a wall stays standing.
Inputs
- 0pieces
Parameters 7
modemenuradius: pieces whose centre is within `radius` of `center` become active. box_below: pieces with centre y below `height` become active. expression: numpy expression on C (piece centres (n,3)), e.g. 'C[:,0] > 0.5'.
centervector 3Centre for mode=radius.
radiusfloatRadius for mode=radius.
heightfloatHeight for mode=box_below.
expressionstringExpression for mode=expression; must give a bool per piece.
inverttoggleInvert the selection.
others_inactivetoggleSet unselected pieces to active=0 (otherwise they keep their value).
Use it
Add it from the node menu (right-click empty graph space or Tab, then type rbd_activate), ask the AI for it by name, or add it with a graph op from the API or MCP:
{"op":"add","type":"rbd_activate","name":"my_rbd_activate","params":{},"inputs":["src"]}Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.