// Bind user positions and exaQuark will continuously // compute the information relevant to their latitude and longitude. let currentState = function () { return { iid: 'as7832lnLKas', universe: 'SANDBOX', geo: { lat: 1.288, lng: 103.8475, altitude: 0.0, rotation: [ 0, 0, 0 ] } } } exaQuark.bind(currentState)

// exaQuark sends users only relevant content // and neighbors based on their position on earth exaQuark.on("neighbor:enter", entityState => { switch (entityState.properties.properties) { case 'HUMAN': handleNeighbour(entityState) break; case 'OBJECT': handleArObject(entityState) break; default: console.log(entityState) } })

// Share augmented experiences between users // over peer to peer networking exaquark.push('data:private', { universe: 'SANDBOX', iids: ['as7832lnLKas'] data: { content: 'https://content.exaquark.com/g7uoFD', position: { lat: 1.288, lng: 103.8475, altitude: 0.0, rotation: [ 0, 0, 0 ] } } })