Exemple #1
0
    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();
    }
Exemple #2
0
 public void MoveToPosition(IK_Segment segment, float length)
 {
     MoveToPosition(segment.transform.position, length);
 }