public void AddSegment(IK_Segment existingSegment) { end.AddChild(existingSegment.root); childrenSegments.Add(existingSegment); existingSegment.joints.Insert(0, end); existingSegment.joints[1].parentJoint = end; // Old root existingSegment.root = end; existingSegment.parentSegment = existingSegment; end.UpdateJointDetails(); existingSegment.root.parentJoint.UpdateJointDetails(); }
public void MoveToPosition(IK_Segment segment, float length) { MoveToPosition(segment.transform.position, length); }