Class Leap::HandPoseDetector

class Leap.HandPoseDetector : public MonoBehaviour

Public Types

enum TypeOfDirectionCheck

What type of directionality is this check? e.g. pointing towards and object or a world direction.

Values:

TowardsObject
WorldDirection
CameraDirection
MatchObjectRotation
enum AxisToFace

Adding the ablility of enum style direction selection in the Inspector.

Values:

Back
Down
Forward
Left
Right
Up

Public Functions

HandPoseScriptableObject GetCurrentlyDetectedPose ()

This function determines whether a pose is currently detected or not. If a pose is currently detected, it will return the pose If a pose is not detected then this will return null

Return

currently detected pose (will be null if no pose is currently detected)

Public Members

bool checkBothHands = true

Should the detector try to match this pose with both hands? Untick to enable single hand poses. E.g. only allowing left hand to activate pose.

Chirality chiralityToCheck

Which hand should the detector check?

List<PoseRule> poseRules

Add more here to put constraints on when the pose is detected. E.g. if the user needs to point at an object with their index finger for the pose to be considered detected”

struct PoseRule
struct PoseRuleCache
struct RuleDirection

Holds information about different fingers, bones and their directional targets.

struct ValidationData