This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Professional (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Materials and Shaders
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine.Plugins.LeapMotion.Bone Struct

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

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

ИмяОписание
METACARPAL = 0Metacarpal bone. A bone connected to the wrist inside the palm.
PROXIMAL = 1Proximal bone. A bone connecting to the palm.
INTERMEDIATE = 2Intermediate bone. A bone between the tip and the base.
DISTAL = 3Distal 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: 14.12.2022
Build: ()