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.

Parameters

head: Vector3

Bone’s head (position)

tail: Vector3

Bone’s tail (end)

axisZ: Vector3

Direction of Z axis

Returns

BoneTransform

Bone transformation