forEach(descendantOf:inclusive:update:)
forEach(descendantOf:inclusive:update:)
forEach(descendantOf:inclusive:update:) Instance Method of JointCollection Calls the provided closure on each element in the hierarchy rooted at the named joint.
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.