AffineTransform oldTrans = g2d.getTransform();
for (WorldObject wo : world.getObjects()) {
Vector2d pos = wo.getPosition();
g2d.translate(pos.getX(), pos.getY());
g2d.rotate(wo.getRotation());
View view = wo.getView();
view.render(g2d);
g2d.setTransform(oldTrans);
}
View view = world.getGroundView();
view.render(g2d);
}