Skip to content

estimateBoneYZ

estimateBoneYZ(head, tail, axisZ): BoneTransform

Estimate bone position and rotation

Position/translation of bone is defined by its head. Rotation is defined by bone’s basis axes: vector from head to tail gives Y axis, Z axis is provided, X axis is evaluated to form right-handed orthonormal basis.

Vector3

Bone’s head (position)

Vector3

Bone’s tail (end)

Vector3

Direction of Z axis

BoneTransform

Bone transformation