tile.setUserData("top", top);
tile.setUserData("right", right);
tile.setUserData("bottom", bottom);
tile.setUserData("left", left);
//Create some default texture coords
tile.setBounds(new BoundsZPlaneRectangle(tile));
if (tile != null && tile.hasBounds() && tile.getBounds() instanceof BoundsZPlaneRectangle){
BoundsZPlaneRectangle bounds = (BoundsZPlaneRectangle) tile.getBounds();
// float width = bounds.getWidthXY(TransformSpace.LOCAL);
// float height = bounds.getHeightXY(TransformSpace.LOCAL);
// float upperLeftX = bounds.getVectorsLocal()[0].x;
// float upperLeftY = bounds.getVectorsLocal()[0].y;