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).

Vector3

Global bone’s position

Object3D

Reference to the bone instance

boolean = true

void