m.rotateZ(PApplet.radians(bone.getZrotation()));
bone.global_matrix = m;
if (bone.getParent() != null && bone.getParent().global_matrix != null)
m.preApply(bone.getParent().global_matrix);
m.mult(new PVector(), bone.getAbsPosition());
if (bone.getChildren().size() > 0)
{
for (BvhBone child : bone.getChildren())