PinchInfo

public class PinchInfo

A class containing pinch information.

Fields

public Vector3 pinchDirection

Returns direction of the pinch ray.

public float pinchLevel

Returns pinch (thumb & index) level of the hand, within [0, 1], higher means more possible to pinch. If you only need a boolean value for pinch or not, you can use isPinching instead.

public Vector3 pinchStart

Returns start position of the pinch ray.

Methods

public boolean isPinching()

Returns if thumb & index finger is pinching or not. If you need a range value within [0, 1], you can use pinchLevel instead.

Returns:Is currently pinching or not.