Bone

class Fingo::Bone

Bone in hand skeleton.

Public Functions

Bone(Vector3 start, Vector3 end, Quaternion rotation, BoneIndex index)

Create a bone by joint start point, joint end point, bone rotation and bone index.

Parameters
  • start: The closer joint position to the wrist of the bone.
  • end: The farer joint position to the wrist of the bone.
  • rotation: The rotation of the bone.
  • index: The bone index of the bone.

Vector3 GetStartJointPosition()

Get the closer joint position to the wrist of the bone related to Fingo Device.

Return
The closer joint position to the wrist of the bone related to Fingo Device.

Vector3 GetEndJointPosition()

Get the farer joint position to the wrist of the bone related to Fingo Device.

Return
The farer joint position to the wrist of the bone related to Fingo Device.

float GetLength()

Get the length of the bone related to Fingo Device.

Return
The length of the bone related to Fingo Device.

Vector3 GetUpDirection()

Get up direction of the bone related to Fingo Device.

Return
Up direction of the bone related to Fingo Device.

Vector3 GetNormalDirection()

Get normal direction of the bone related to Fingo Device.

Return
Normal direction of the bone related to Fingo Device.

Vector3 GetLeftDirection()

Get left direction of the bone related to Fingo Device.

Return
Left direction of the bone related to Fingo Device.

Vector3 GetBoneCenterPosition()

Get up direction of the bone related to Fingo Device.

Return
Up direction of the bone related to Fingo Device.

Quaternion GetBoneRotation()

Get rotation of the bone related to Fingo Device.

Return
Rotation of the bone related to Fingo Device.

enum Fingo::BoneIndex

Bone index. Metacarpus - 0, Proximal - 1, Intermediate - 2, Distal - 3.

Values:

Metacarpus = 0

Metacarpus bone index.

Proximal

Proximal bone index.

Intermediate

Intermediate bone index.

Distal

Distal bone index.