(function() { var zoneWebEntities = []; var DEFAULT_DPI = 30; var DPI = /*dpi ||*/ DEFAULT_DPI; this.enterEntity = function(id) { Entities.getChildrenIDs(id).forEach(function(entityID) { var properties = Entities.getEntityProperties(entityID); zoneWebEntities.push(Overlays.addOverlay("web3d", { url: JSON.parse(properties.userData).url, position: properties.position, rotation: properties.rotation, resolution: { x: 480, y: 640 }, dpi: DPI, color: { red: 255, green: 255, blue: 255 }, alpha: 1.0, parentID: entityID, parentJointIndex: -1 })) }); }; this.leaveEntity = function(id) { zoneWebEntities.forEach(function(overlay) { Overlays.deleteOverlay(overlay); }); }; });