LEAP_BONE

Type Alias LEAP_BONE 

Source
pub type LEAP_BONE = _LEAP_BONE;
Expand description

\ingroup Structs Describes a bone’s position and orientation.

Bones are members of the LEAP_DIGIT struct. @since 3.0.0

Aliased Type§

#[repr(C, packed(1))]
pub struct LEAP_BONE { pub prev_joint: _LEAP_VECTOR, pub next_joint: _LEAP_VECTOR, pub width: f32, pub rotation: _LEAP_QUATERNION, }

Fields§

§prev_joint: _LEAP_VECTOR

The base of the bone, closer to the heart. The bones origin. @since 3.0.0

§next_joint: _LEAP_VECTOR

The end of the bone, further from the heart. @since 3.0.0

§width: f32

The average width of the flesh around the bone in millimeters. @since 3.0.0

§rotation: _LEAP_QUATERNION

Rotation in world space from the forward direction. Convert the quaternion to a matrix to derive the basis vectors. @since 3.1.2