Use the Head Shake patch to make something happen when the user moves their head from left to right or right to left and returns to the center.
A head shake is only detected if the head moves within 45 degrees from one direction to the other before returning to the center.
Track the user’s face from the face tracker.
Output the value to the next patch.
We configured the graph below to make an object appear when the user shakes their head and disappear when the user shakes it again.
To do this, we connected: