# Unigine::Plugins::UltraleapBone Class (CPP) **Header:** #include This class represents a [bone](../../../../code/plugins/ultraleap/index_cpp.md#bones) of a [finger](../../../../api/library/plugins/ultraleap/class.ultraleapfinger_cpp.md). > **Notice:** [Ultraleap](../../../../code/plugins/ultraleap/index_cpp.md) plugin must be loaded. ## UltraleapBone Class ### Enums ## TYPE | Name | Description | |---|---| | **TYPE_METACARPAL** = 0 | Metacarpal [bone](../../../../code/plugins/ultraleap/index_cpp.md#bones). | | **TYPE_PROXIMAL** = 1 | Proximal phalange [bone](../../../../code/plugins/ultraleap/index_cpp.md#bones). | | **TYPE_INTERMEDIATE** = 2 | Intermediate phalange [bone](../../../../code/plugins/ultraleap/index_cpp.md#bones). | | **TYPE_DISTAL** = 3 | Distal phalange [bone](../../../../code/plugins/ultraleap/index_cpp.md#bones). A bone at the tip of the finger. | | **NUM_TYPES** = 4 | Total number of bone types. | ### Members ## UltraleapFinger * getFinger () const Returns the current object for the finger. ### Return value Current object for the finger ## UltraleapBone::TYPE getType () const Returns the current type of the bone. One of the [TYPE_*](#TYPE_METACARPAL) values. ### Return value Current type of the bone ## double getLength () const Returns the current length of the bone, in meters. ### Return value Current length of the bone, in meters ## double getWidth () const Returns the current width of the bone, in meters. ### Return value Current width of the bone, in meters ## Math:: Vec3 getJointBeginPosition () const Returns the current coordinates of the end of the bone closest to the wrist (proximal). ### Return value Current coordinates of the end of the bone closest to the wrist (proximal) ## Math:: Vec3 getJointEndPosition () const Returns the current coordinates of the end of the bone closest to the finger tip (distal). ### Return value Current coordinates of the end of the bone closest to the finger tip (distal) ## Math:: Vec3 getCenter () const Returns the current coordinates of the center of the bone. ### Return value Current coordinates of the center of the bone ## Math:: vec3 getDirection () const Returns the current normalized direction of the bone from wrist to tip. ### Return value Current normalized direction of the bone from wrist to tip