On Shake event for Accelerometer or Gyroscope
Posted: Thu Aug 10, 2023 9:30 pm
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.
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.