Struck Test
Send rigid bodies on when another body strikes them hard enough: knock bricks from a wall held still, or set off a chain.
Rigid bodies another body strikes faster than a speed go along the wire (resting on one, or carried by it, doesn't strike it). Kinematic ones sent to an event whose Rigid Body isn't are freed as they are struck, and take the blow.
- Add it
- EventAdd OperatorTestsStruck Test
- Sends on
- Along its wire: rigid bodies another body strikes faster than the speed.
- Influence
- No: a value can’t weigh it.
When to use it
To keep rigid bodies still until something hits them: a wall that stands until a ball strikes it, a stack that holds until it's knocked, a row of dominoes. The struck ones go to another event, and from there fall like any other body.
It needs a Rigid Body in its event.
Set it up
Make the still bodies Kinematic in the first event, and give the event the Struck Test sends to a Rigid Body that isn't, with a Gravity.
Settings
As the flow editor’s sidebar shows them. Changing any of them marks the bake old; those marked Keyframable can also change through a bake.
Speed is how fast another body must close on one, in metres a second, for it to count. A body resting on another, or carried along by it, isn't striking it, however long it touches.
Freed as they're struck
A Kinematic body sent to an event whose Rigid Body isn't kinematic is freed as it's struck, and takes the blow: it flies off as a body hit that hard would. The blow arrives a substep after the strike.
The wire
Not wired, a Struck Test does nothing: struck bodies stay.
Works with
- Rigid Body, in its event: an error without one. Bodies of every event can strike them.
- Collide: a body that hits the event's colliders or ground goes along the Collide's wire, not this one's.
- It can't be weighed by a value.
Problems you may see
event: a Struck Test is for rigid bodies: add a Rigid Body
Errors stop a bake; warnings don’t. Every message is on the Messages page.
Related
- Rigid Body, Bind
- Destruction, a guide