Unigine.Plugins.LeapMotion.Bone Struct
LeapMotion plugin must be loaded.
This structure represents a bone of a finger. All coordinates are relative to the origin of the Leap Motion coordinate system.
The Bone structure is declared as follows:
public struct Bone
{
public int type;
public float length;
public float width;
public int is_valid;
public vec3 prev_joint;
public vec3 next_joint;
public vec3 center;
public vec3 direction;
public mat4 basis;
};
LeapMotionBone Class
Enums
TYPE#
Name | Description |
---|---|
METACARPAL = 0 | Metacarpal bone. A bone connected to the wrist inside the palm. |
PROXIMAL = 1 | Proximal bone. A bone connecting to the palm. |
INTERMEDIATE = 2 | Intermediate bone. A bone between the tip and the base. |
DISTAL = 3 | Distal bone. A bone at the tip of the finger. |
NUM_TYPES = | Total number of bone types. |
Properties
int type#
The Bone type. One of the TYPE values.
float length#
The Length of the bone, in meters.
float width#
The Width of the bone, in meters.
vec3 prev_joint#
The Coordinates of the end of the bone, closest to the wrist (proximal).
vec3 next_joint#
The Coordinates of the end of the bone, closest to the finger tip (distal).
vec3 center#
The Coordinates of the center of the bone.
vec3 direction#
The Normalized direction of the bone from wrist to tip.
mat4 basis#
The Orthonormal basis vectors for the bone as a Matrix.
int is_valid#
The 1 if the bone 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)