Page 1 of 1

On Shake event for Accelerometer or Gyroscope

Posted: Thu Aug 10, 2023 9:30 pm
by drumminhands
I'm using the MOT0110_0 PhidgetSpatial Precision 3/3/3. I already have code working to use the spatial to change a game object's orientation in Unity.

But I want to trigger something if the sensor is in a state of constant shaking. I could use either the accelerometer or gyroscope. Any advice to get an OnShake event type of situation working?

Thanks.