alignBone
alignBone(
transform
,bone
,connect
):void
Set bone transformation
Transformation is in the world coordinate frame. If bone has parent we find relative transformation to follow the skeleton hierarchy. Optionally scale of parent bone can be adjusted to connect head and reference (rest) position of parent’s tail (they have to be the same 3D point).
Parameters
Section titled “Parameters”transform
Section titled “transform”Global bone’s position and rotation
TransformNode
Reference to the bone instance
connect
Section titled “connect”boolean
= true
Scale the parent to connect the bone
Returns
Section titled “Returns”void