getOrCreateObject3D(type, Constructor) {
    var object3D = this.getObject3D(type);
    if (!object3D && Constructor) {
      object3D = new Constructor();
      this.setObject3D(type, object3D);
    }
    warn('`getOrCreateObject3D` has been deprecated. Use `setObject3D()` ' + 'and `object3dset` event instead.');
    return object3D;
  }
Gets or creates an object3D of a given type.

@param {string} type - Type of the object3D.
@param {string} Constructor - Constructor to use to create the object3D if needed.
@returns {object}