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: TransformNode

Reference to the bone instance

Returns

void