currentHistory %= HistoryC; // make constant...
ObjectHistory current = objectHist.get(currentHistory);
current.stateobjs.clear();
for (WorldObject wo : world.getObjects()){
WorldObjectState stateCopy = new WorldObjectState(wo.getElasticity(), wo.getMass(), wo.getMomentOfInertia(), wo.getTimeToLive(), wo.getType(), wo);
stateCopy.copyState(wo);
current.stateobjs.add(stateCopy);
}
}