Initial release of the Detection Examples module.

Examples:

  • PinchMovement -- Use the PinchDetector to transform an object.
  • PinchDraw -- Use the PinchDetector to draw 3D lines.
  • FingerDetector -- Use the Extended Finger and FingerPointing detectors to trigger an action on a thumb's up pose and when pointing at another object.

Detectors build on the Pinch Utility module to provide a convenient way to detect what a user’s hand is doing. In addition to detecting pinches, you can now detect when the fingers of a hand are curled or extended, whether a finger or palm are pointing in a particular direction, and whether the hand or fingertip are close to one of a set of target objects. (A grab detector is coming soon.)

What is more, these detectors can be combined together using a Logic Gate. The Detector Logic Gate is itself a detector that logically combines two or more other detectors to determine its own state. Need a thumb’s up gesture? Combine a thumb extended detector with a thumb pointing upward detector using a logic gate.

Detectors dispatch standard Unity events when they activate or deactivate. This makes it easy to hook up objects and scripts to a detector straight from the Unity editor — without writing a line of code.

Each detector can draw gizmos that make it easy to see its configured conditions and whether it is currently active or inactive.

Detectors are designed to be small building blocks that you can put together into something interesting. This also has the benefit that it is easy to write your own detector scripts.

The Detector scripts, including the PinchDetector, are now part of the Core Assets package. The former Pinch Utility module has been retired and the example scenes moved to this Detection Examples package.