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
Section titled “Parameters”position
Section titled “position”Vector3
Global bone’s position
Object3D
Reference to the bone instance
connect
Section titled “connect”boolean
= true
Returns
Section titled “Returns”void