World positions or nodes; length >= 2. Not modified.
World position the tip should reach. Not modified.
Optionaloptions: IKSolveOptions
Tolerance, iteration budget, optional per-joint limits.
Optionalout: Vector3[]
Positions to write; allocated when omitted.
Writes
chain's world positions intooutand solves cyclic coordinate descent so the tip reachestarget.Each iteration walks the joints from the tip backward to the root and rotates the suffix so that joint's outgoing points closer to the target, then applies that joint's limit if one was given. Bone lengths are taken from the input chain and never stretch.
Allocation-free when
outis provided and already holds oneVector3per chain entry (scratch is module-level, write-before-read). The solver does not retain nodes.