updateWorldTransformBone method

void updateWorldTransformBone(
  1. Physics physics,
  2. Bone parent
)

Temporarily sets the root bone as a child of the specified bone, then updates the world transform for each bone and applies all constraints.

See World transforms in the Spine Runtimes Guide.

Implementation

void updateWorldTransformBone(Physics physics, Bone parent) {
  _bindings.spine_skeleton_update_world_transform_bone(_skeleton, physics.value, parent._bone);
}