Contents

automatchQuadruped(_:sourceTransform:to:targetTransform:jointOffsets:)

Creates a retargeting configuration for quadrupedal characters using automatic joint matching.

Declaration

@MainActor static func automatchQuadruped(_ sourceSkeleton: SkeletonResource, sourceTransform: Transform = .identity, to targetSkeleton: SkeletonResource, targetTransform: Transform = .identity, jointOffsets: [String : simd_quatf] = [:]) throws -> RetargetingConfiguration

Parameters

  • sourceSkeleton:

    The skeleton of the animation to retarget.

  • sourceTransform:

    Transform applied to the source skeleton’s root during matching (defaults to identity).

  • targetSkeleton:

    The skeleton that will receive the re-targeted animation.

  • targetTransform:

    Transform applied to the target skeleton’s root during matching (defaults to identity).

  • jointOffsets:

    Optional quaternion offsets applied to specific joints during configuration creation. Keys must match joint names in the target skeleton. The function applies offsets on top of the automatically detected joint correspondences and bakes them into the configuration.

Return Value

A configured retargeting instance ready for animation processing.

Discussion

See Also

Creating a configuration