Unigine.Plugins.LeapMotion.Finger Struct
LeapMotion plugin must be loaded.
This structure represents a finger of a hand. All coordinates are relative to the origin of the Leap Motion coordinate system.
The Finger structure is declared as follows:
public struct Finger
{
public int id;
public int type;
public float length;
public float width;
public int is_extended;
public int is_valid;
public vec3 tip_position;
public vec3 tip_velocity;
public vec3 direction;
public vec3 stabilized_tip_position;
public Bone[] bones;
};
Elements of the array of bones of the finger can be accessed using Bone::TYPE values as indices.
LeapMotionFinger Class
Enums
TYPE#
Name | Description |
---|---|
THUMB = 0 | Thumb. |
INDEX = 1 | Index finger. |
MIDDLE = 2 | Middle finger. |
RING = 3 | Ring finger. |
PINKY = 4 | Pinky finger. |
NUM_TYPES = | Total number of finger types. |
Properties
int type#
The Finger type. One of the TYPE values.
int id#
The Finger ID.
float length#
The Length of the finger, in meters.
float width#
The Width of the finger, in meters.
vec3 tip_position#
The Coordinates of the instantaneous position of the finger tip.
vec3 stabilized_tip_position#
The Coordinates of the finger tip position filtered and stabilized using velocity and past positions.
vec3 tip_velocity#
The Instantaneous velocity of the finger tip, in m/s.
vec3 direction#
The Current pointing direction vector of the finger.
int is_extended#
The 1 if the finger is extended; otherwise, 0.
int is_valid#
The 1 if the finger contains valid tracking data; otherwise, 0.
Members
Last update:
2022-12-14
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)