src/core/engines/ogl/ogl.js
/**
     * Removes the provided model from the scene and all the handlers it mit be registered with.
     *
     * @param model     The model to remove
     */
Removes the provided model from the scene and all the handlers it mit be registered with.
@param model     The model to remove
Removes the provided model from the scene and all the handlers it mit be registered with . @param model The model to remove
remove(model) {
        scene.removeChild(model);
        delete updateHandlers[model.id];
        delete eventHandlers[model.id];
    }
remove ( model ) { scene . removeChild ( model ) ; delete updateHandlers [ model . id ] ; delete eventHandlers [ model . id ] ; }
Removes the provided model from the scene and all the handlers it mit be registered with.
Removes the provided model from the scene and all the handlers it mit be registered with .
// TODO: this assumes that all objects are children of the root node! // We should call something like model.parent.removeChild(model);