src/core/engines/ogl/ogl.js
/**
     * This adds a spatial content record (SCR) to the scene at a given GeoPose
     * @param {*} globalObjectPose GeoPose of the content
     * @param {*} content The content entry
     */
This adds a spatial content record (SCR) to the scene at a given GeoPose
@param {*} globalObjectPose GeoPose of the content
@param {*} content The content entry
This adds a spatial content record ( SCR ) to the scene at a given GeoPose @param { * } globalObjectPose GeoPose of the content @param { * } content The content entry
addSpatialContentRecord(globalObjectPose, content) {
        const object = createAxesBoxPlaceholder(gl, [0.7, 0.7, 0.7, 1.0]) 
        let relativePosition = getRelativeGlobalPosition(_globalImagePose, globalObjectPose);
        relativePosition = convertGeo2WebVec3(relativePosition);
        object.position.set(relativePosition[0], relativePosition[1], relativePosition[2]); 
        object.quaternion.set(globalObjectPose.quaternion.x,
                              globalObjectPose.quaternion.y,
                              globalObjectPose.quaternion.z,
                              globalObjectPose.quaternion.w);
        _geo2ArTransformNode.addChild(object);
        object.updateMatrixWorld(true);
    }
addSpatialContentRecord ( globalObjectPose , content ) { const object = createAxesBoxPlaceholder ( gl , [ 0.7 , 0.7 , 0.7 , 1.0 ] ) let relativePosition = getRelativeGlobalPosition ( _globalImagePose , globalObjectPose ) ; relativePosition = convertGeo2WebVec3 ( relativePosition ) ; object . position . set ( relativePosition [ 0 ] , relativePosition [ 1 ] , relativePosition [ 2 ] ) ; object . quaternion . set ( globalObjectPose . quaternion . x , globalObjectPose . quaternion . y , globalObjectPose . quaternion . z , globalObjectPose . quaternion . w ) ; _geo2ArTransformNode . addChild ( object ) ; object . updateMatrixWorld ( true ) ; }
This adds a spatial content record (SCR) to the scene at a given GeoPose
 @param {*} globalObjectPose GeoPose of the content
 @param {*} content The content entry
This adds a spatial content record ( SCR ) to the scene at a given GeoPose @param { * } globalObjectPose GeoPose of the content @param { * } content The content entry
// gray // calculate relative position w.r.t the camera in ENU system // set _local_ transformation w.r.t parent _geo2ArTransformNode // from vec3 to Vec3 // set the objects' orientation as in the GeoPose response, that is already in ENU // now rotate and translate it into the local WebXR coordinate system by appending it to the transformation node