Skip to content

positionBone

positionBone(position, bone, connect): void

Set bone position and connect to parent

Position is in the world coordinate frame. If the bone has a parent we find relative position to follow the skeleton hierarchy. Optionally scale of parent bone can be adjusted to connect head and reference (rest) position of the parent’s tail (they have to be the same 3D point).

Parameters

position: Vector3

Global bone’s position

bone: TransformNode

Reference to the bone instance

connect: boolean = true

Returns

void