This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
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
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
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::UltraleapBone Class

Header: #include <plugins/UnigineUltraleap.h>

This class represents a bone of a finger.

Notice
Ultraleap plugin must be loaded.

UltraleapBone Class

Enums

TYPE#

NameDescription
TYPE_METACARPAL = 0Metacarpal bone.
TYPE_PROXIMAL = 1Proximal phalange bone.
TYPE_INTERMEDIATE = 2Intermediate phalange bone.
TYPE_DISTAL = 3Distal phalange bone. A bone at the tip of the finger.
NUM_TYPES = 4Total number of bone types.

Members


UltraleapFinger * getFinger ( ) const#

Returns the object for the finger.

Return value

The object for the finger.

UltraleapBone::TYPE getType ( ) const#

Returns the type of the bone.

Return value

The bone type. One of the Bone::TYPE_* values.

double getLength ( ) const#

Returns the length of the bone.

Return value

The length of the bone, in meters.

double getWidth ( ) const#

Returns the width of the bone, in meters.

Return value

The width of the bone, in meters.

Math::Vec3 getJointBeginPosition ( ) const#

Returns the coordinates of the end of the bone closest to the wrist (proximal).

Return value

The coordinates of the end of the bone closest to the wrist (proximal).

Math::Vec3 getJointEndPosition ( ) const#

Returns the coordinates of the end of the bone closest to the finger tip (distal).

Return value

The coordinates of the end of the bone closest to the finger tip (distal).

Math::Vec3 getCenter ( ) const#

Returns the coordinates of the center of the bone.

Return value

The coordinates of the center of the bone.

Math::vec3 getDirection ( ) const#

Returns the normalized direction of the bone from wrist to tip.

Return value

The normalized direction of the bone from wrist to tip.
Last update: 2022-12-14
Build: ()