LeapMotionFinger Class
The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScript (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.
LeapMotion plugin must be loaded.
This class represents a finger of a hand. All coordinates are relative to the origin of the Leap Motion coordinate system.
struct Finger
Fields
- enum TYPE
- int id - Identifier of the finger. 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.
- int type
- float length - Length of the finger, in meters.
- float width - Width of the finger, in meters.
- int is_extended - Value indicating if the finger is extended.
- int is_valid - Value indicating if the finger contains valid tracking data.
- vec3 direction - Current pointing direction vector of the finger.
All coordinates are relative to the origin of the Leap Motion coordinate system.
Last update:
2023-06-23
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)