This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

LeapMotionFinger Class

Notice
LeapMotion plugin must be loaded.

This class represents a finger of a hand.

LeapMotionFinger Class

Members


int getType()

Returns the type of the finger.

Return value

Finger type. One of the LEAP_MOTION_TYPE_* values.

int getId()

Returns the ID of the finger.
Notice
Finger IDs are assigned based on the hand ID. If a hand has an ID of “5”, then its fingers are assigned IDs 50 to 55, ordered from thumb to pinky.

Return value

Finger ID.

float getLength()

Returns the length of the finger.

Return value

Length of the finger, in meters.

float getWidth()

Returns the width of the finger.

Return value

Width of the finger, in meters.

vec3 getTipPosition()

Returns the coordinates of the instantaneous position of the finger tip.
Notice
All coordinates are relative to the origin of the Leap Motion coordinate system.

Return value

Coordinates of the instantaneous position of the finger tip.

vec3 getStabilizedTipPosition()

Returns the coordinates of the finger tip position filtered and stabilized using velocity and past positions.
Notice
All coordinates are relative to the origin of the Leap Motion coordinate system.

Return value

Coordinates of the finger tip position filtered and stabilized using velocity and past positions.

vec3 getTipVelocity()

Returns the instantaneous velocity of the finger tip.
Notice
All coordinates are relative to the origin of the Leap Motion coordinate system.

Return value

Instantaneous velocity of the finger tip, in m/s.

vec3 getDirection()

Returns the current pointing direction vector of the finger.
Notice
All coordinates are relative to the origin of the Leap Motion coordinate system.

Return value

Current pointing direction vector of the finger.

int isExtended()

Returns a value indicating if the finger is extended.

Return value

1 if the finger is extended; otherwise, 0.

int isValid()

Returns a value indicating if the finger contains valid tracking data.

Return value

1 if the finger contains valid tracking data; otherwise, 0.

int LEAP_MOTION_TYPE_THUMB

Description

Thumb.

int LEAP_MOTION_TYPE_INDEX

Description

Index finger.

int LEAP_MOTION_TYPE_MIDDLE

Description

Middle finger.

int LEAP_MOTION_TYPE_RING

Description

Ring finger.

int LEAP_MOTION_TYPE_PINKY

Description

Pinky finger.

int LEAP_MOTION_FINGER_NUM_TYPES

Description

Total number of finger types.
Last update: 2018-08-10
Build: ()