Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
beehive_dev's avatar
beehive_dev
Honored Guest
5 years ago

How can I detect different hand gestures?

Hi,

So I'd like to detect different hand gestures. I'm using OVRHandPrefab and there is a script OVRHand on that prefab. Inside I can see thee is a reference to OVRPlugin.HandState. If I look at the hand state it's a struct:

public struct HandState
{
public HandStatus Status;
public Posef RootPose;
public Quatf[] BoneRotations;
public HandFingerPinch Pinches;
public float[] PinchStrength;
public Posef PointerPose;
public float HandScale;
public TrackingConfidence HandConfidence;
public TrackingConfidence[] FingerConfidences;
public double RequestedTimeStamp;
public double SampleTimeStamp;
}

And there I can see is a public HandFingerPitch Pinches (which I'm guessing is used then you pinch and go to menu by default), but that's just another enum. 

So what should I use to detect different hand gestures (eg. make a fist or grip)?