if(rootbone[frame] == null)
{
rootbone[frame] = new Bone();
global = root.getTransformation(frame, motion);
rootbone[frame].setStart(global.times(matrixToPoint));
for(Joint child : root.getChildren())
{
recursiveSegment(frame, rootbone[frame], child, global);
}
}