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

Parameters 7

modemenu
Default radiusOptions radius box_below expression

radius: 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 3
Default [0, 0, 0]

Centre for mode=radius.

radiusfloat
Default 1Range 0 to …

Radius for mode=radius.

heightfloat
Default 0.5

Height for mode=box_below.

expressionstring
Default C[:,1] > 0.5

Expression for mode=expression; must give a bool per piece.

inverttoggle
Default off

Invert the selection.

others_inactivetoggle
Default on

Set 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.