this.activeSceneModel.scene.children[0].children[1].children[0]
- the object which get matrix transformation from Slam algorithm.
.position
- represents Scene position relatively to the camera/observer object (camera always stays at (0, 0, 0))
const render = () => {
console.log('camera', this.activeSceneModel.camera.position);
console.log('scene', this.activeSceneModel.scene.children[0].children[1].children[0].position);
}
this.activeSceneModel.userCallbacks.onRender = render;