This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine 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
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Art Samples
Tutorials
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.

Unigine.Plugins.LeapMotion.Finger Struct

Notice
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:

Source code (C#)
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#

NameDescription
THUMB = 0Thumb.
INDEX = 1Index finger.
MIDDLE = 2Middle finger.
RING = 3Ring finger.
PINKY = 4Pinky finger.
NUM_TYPES = Total number of finger types.

Properties

int type#

Returns the type of the finger, one of the TYPE values.

int id#

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.

float length#

Returns the length of the finger, in meters.

float width#

Returns the width of the finger, in meters.

vec3 tip_position#

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.

vec3 stabilized_tip_position#

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.

vec3 tip_velocity#

Returns the instantaneous velocity of the finger tip, in m/s.
Notice
All coordinates are relative to the origin of the Leap Motion coordinate system.

vec3 direction#

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

int is_extended#

Returns 1 if the finger is extended; otherwise, 0.

int is_valid#

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

Members


Last update: 2021-04-29
Build: ()