How to get camera position on Hololens 2 ?
Hello,
I'm trying to get postion of my camera (On Hololens 2) with this code:
$scope.setVector= function() {
tml3dRenderer.setupTrackingEventsCommand (function(target,eyepos,eyedir,eyeup) {
$scope.app.params.eyepos = [eyepos[0].toFixed(2),eyepos[1].toFixed(2),eyepos[2].toFixed(2)];
$scope.app.params.eyedir = [eyedir[0].toFixed(2),eyedir[1].toFixed(2),eyedir[2].toFixed(2)];
$scope.app.params.eyeup = [eyeup[0].toFixed(2), eyeup[1].toFixed(2), eyeup[2].toFixed(2)];
})
};
$interval(function(){ $scope.setVector(); },100);
Obviously, the three values of "eyepos", "eyedir", "eyeup" are mapped with parametre which are linked to a "3DLabels" Widget to display values within my experience.
In the two tests, I'm using a "Thingmark" to activate my experiences.
And I'm facing some issue, this code is working fine on "Mobile Project" but on "3D Eyewear"
Any ideas ?

