@Override public void dispose() { for (ModelInstance obj : instances) if (obj instanceof GameObject) ((GameObject) obj).dispose(); instances.clear(); physics.dispose(); }
private void updateGameObjectsInformations(float delta) { for (GameObject o : instances) { o.update(delta); } }