public <E extends DimentionObject> void removeSceneItem(E child){
		if (child.getClass() == Light.class){
			Light light = (Light)child;
			if (this.lights.indexOf(light) != -1){
				this.lights.remove(light);
			}
		}
		else if (child.getClass() == Sound.class){
			Sound sound = (Sound)child;
			if (this.sounds.indexOf(sound) != -1){
				this.sounds.remove(sound);
			}
		}
		else if (!(child.getClass() == Camera.class || child.getClass() == Bone.class)){
			if (this.objects.indexOf(child) != -1){
				this.objects.remove(child);
				this.objectsRemoved.add(child);
			}
		}
		
		for (DimentionObject item : child.getChildren()) {

			this.removeSceneItem(item);

		}
	}