Skip to content

rotateBone

rotateBone(rotation, bone): void

Set bone rotation keeping relative position

Rotation is in the world coordinate frame. If the bone has a parent we find relative rotation to follow skeleton hierarchy.

Parameters

rotation: Quaternion

Global bone’s rotation

bone: Object3D<Object3DEventMap>

Reference to the bone instance

Returns

void