code: public static void exports(Xml root, Collision collision)
      {
          Check.notNull(root);
          Check.notNull(collision);
  
          final Xml node = root.createChild(NODE_COLLISION);
          node.writeString(ATT_NAME, collision.getName());
          node.writeInteger(ATT_OFFSETX, collision.getOffsetX());
          node.writeInteger(ATT_OFFSETY, collision.getOffsetY());
          node.writeInteger(ATT_WIDTH, collision.getWidth());
          node.writeInteger(ATT_HEIGHT, collision.getHeight());
          node.writeBoolean(ATT_MIRROR, collision.hasMirror());
      }
docs: Create an XML node from a collision.
  
  @param root The node root (must not be <code>null</code>).
  @param collision The collision reference (must not be <code>null</code>).