void SimObject::Deactivate(Scene& scene) { if (rep) scene.DelGraphic(rep); if (light) scene.DelLight(light); active = false; }