forEach(descendantOf:inclusive:update:)
Calls the provided closure on each element in the hierarchy rooted at the named joint.
Declaration
mutating func forEach(descendantOf rootJointName: String, inclusive: Bool = false, update: (inout IKRig.JointCollection.Element) -> Void)Parameters
- rootJointName:
The name of the root of the hierarchy.
- inclusive:
Flag to include the root joint in the update list.
- update:
Closure to update the joints in-place.