Class Leap::PinchDetector

class Leap.PinchDetector : public Leap.ActionDetector

A lightweight Pinch Detector, that calculates a pinch value based on the distance between the provided finger tip and the thumb tip. Utilizes hysteresis to have different pinch and unpinch thresholds.

Public Members

PinchableFingerType fingerType = PinchableFingerType.INDEX

The finger to check for pinches against the thumb.

Properties

float SquishPercent { get; set; }

The percent value (0-1) between the activate distance and absolute pinch. Note that it is virtually impossible for the hand to be completely pinched.

bool PinchStartedThisFrame { get; set; }

Did the Pinch start this frame?

bool IsPinching { get; set; }

Is the PinchDetector currenty detecting a pinch?